/* Login Page Styles */
:root {
    --primary-text: #1d1d1f;
    --secondary-text: #86868b;
    --border-color: #d2d2d7;
    --input-border: #d2d2d7;
    --input-border-focus: #0071e3;
    --button-primary: #0071e3;
    --button-primary-hover: #0077ed;
    --background-white: #fff;
    --background-light: #f5f5f7;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
}

.login-main {
    background-color: var(--background-white);
    min-height: 100vh;
    padding: 40px 20px;
    font-family: var(--font-family);
    font-size: 17px;
    font-weight: 400;
}

.login-main * {
    font-size: 17px;
    font-weight: 400;
}

.login-container {
    max-width: 540px;
    margin: 0 auto;
    background-color: var(--background-white);
}

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

.login-header h1 {
    font-size: 48px !important;
    font-weight: 600 !important;
    line-height: 1.08;
    color: var(--primary-text);
    margin: 0 0 24px 0;
    letter-spacing: -0.003em;
}

.login-subtitle {
    font-size: 17px;
    line-height: 1.38;
    color: var(--primary-text);
    margin: 0 0 24px 0;
    font-weight: 400;
}

.register-link {
    font-size: 17px;
    line-height: 1.47;
    color: var(--primary-text);
    margin: 0;
}

.register-link a {
    color: var(--button-primary);
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: var(--primary-text);
    margin-bottom: 8px;
    line-height: 1.47;
}

.form-input {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    line-height: 1.47;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--background-white);
    color: var(--primary-text);
    font-family: var(--font-family);
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.form-input::placeholder {
    color: var(--secondary-text);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 17px;
    line-height: 1.47;
    color: var(--primary-text);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--button-primary);
    flex-shrink: 0;
}

.checkbox-text {
    flex: 1;
}

.login-button {
    background-color: var(--button-primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.login-button:hover {
    background-color: var(--button-primary-hover);
}

.login-button:active {
    transform: translateY(1px);
}

.login-button:disabled {
    background-color: var(--secondary-text);
    cursor: not-allowed;
    opacity: 0.6;
}

.login-button:disabled:hover {
    background-color: var(--secondary-text);
    transform: none;
}

.login-options {
    text-align: center;
    margin-top: 24px;
}

.forgot-password-link {
    color: var(--button-primary);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.privacy-section {
    text-align: center;
    margin: 32px 0;
    padding: 24px;
}

.privacy-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.privacy-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #6e6e73;
    margin: 0;
    text-align: center;
}

.privacy-link {
    color: var(--button-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Field validation styles */
.form-input.error {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15);
}

.field-error {
    color: #ff3b30;
    font-size: 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.field-error::before {
    content: "⚠";
    font-size: 12px;
}

/* Loading state */
.login-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-main {
        padding: 20px 16px;
    }
    
    .login-header h1 {
        font-size: 32px !important;
    }
    
    .login-subtitle {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .login-header h1 {
        font-size: 28px !important;
    }
    
    .login-subtitle {
        font-size: 17px;
    }
    
    .form-input {
        font-size: 17px;
        padding: 14px;
    }
    
    .login-button {
        font-size: 17px;
        padding: 14px 20px;
    }
} 