/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.signup-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 32px;
}


.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes the logo white to match the theme */
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;
}

.signup-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* (removed) input eye toggle styles */

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: #888;
}

/* Number input specific styling */
.form-group input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.error-message {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #00d4ff;
}

.checkbox-group label {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.4;
    margin: 0;
}

.link {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #00b8e6;
    text-decoration: underline;
}

.signup-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.signup-btn:active {
    transform: translateY(0);
}

.signup-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-link {
    text-align: center;
    margin-bottom: 32px;
}

.login-link p {
    color: #b0b0b0;
    font-size: 14px;
}

.privacy-notice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
}

.privacy-notice h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #e0e0e0;
}

.privacy-notice p {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .signup-card {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 24px;
    }
}

/* Loading state */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state */
.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.success:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Error state */
.error {
    background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%) !important;
    color: #ffffff !important;
}

.error:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}
