/* Authentication Pages Styles */

.auth-container {
    max-width: 375px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.auth-content {
    padding: 40px 20px 20px 20px;
    background: #ffffff;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

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

.auth-title {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 16px;
    color: #666666;
    line-height: 1.4;
    margin: 0;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.alert i {
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    margin-bottom: 30px;
}

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

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #333333;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #FDD835;
    box-shadow: 0 0 0 3px rgba(253, 216, 53, 0.2);
}

.form-input::placeholder {
    color: #a0aec0;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #666666;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666666;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.remember-me .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #FDD835;
    border-color: #FDD835;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #333333;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me:hover .checkmark {
    border-color: #FDD835;
}

.forgot-password {
    color: #FDD835;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #FBC02D;
    text-decoration: underline;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn.primary {
    background: linear-gradient(135deg, #FDD835, #FBC02D);
    color: #333333;
    border: 2px solid #FBC02D;
    box-shadow: 0 4px 12px rgba(253, 216, 53, 0.3);
}

.auth-btn.primary:hover {
    background: linear-gradient(135deg, #FBC02D, #FDD835);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(253, 216, 53, 0.4);
}

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

/* Social Divider */
.social-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.social-divider span {
    background: #ffffff;
    padding: 0 20px;
    color: #a0aec0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    width: 100%;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn.google {
    border-color: #db4437;
    color: #db4437;
}

.social-btn.google:hover {
    background: #db4437;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.3);
}

.social-btn.google i {
    font-size: 18px;
}

.social-btn.google span {
    font-weight: 500;
}

/* Guest Access */
.guest-access {
    margin-bottom: 30px;
}

.guest-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid #FDD835;
    border-radius: 12px;
    background: transparent;
    color: #FDD835;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guest-btn:hover {
    background: #FDD835;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 216, 53, 0.3);
}

.guest-btn i {
    font-size: 16px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.auth-footer p {
    color: #666666;
    font-size: 14px;
    margin: 0;
}

.auth-link {
    color: #FDD835;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #FBC02D;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-content {
        padding: 30px 15px 20px 15px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .auth-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .social-btn {
        height: 45px;
        font-size: 16px;
    }
    
    .guest-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .auth-title {
        font-size: 26px;
    }
    
    .form-input {
        padding: 12px 14px;
    }
    
    .auth-btn {
        padding: 12px;
    }
    
    .social-btn {
        height: 42px;
    }
    
    .guest-btn {
        padding: 12px;
    }
}

/* Animation for smooth transitions */
.auth-container {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for accessibility */
.form-input:focus,
.auth-btn:focus,
.social-btn:focus,
.guest-btn:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Loading state for buttons */
.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Privacy Policy Checkbox Styles */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label:hover .checkmark {
    border-color: #1A4D2A;
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #1A4D2A;
    border-color: #1A4D2A;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

.checkbox-text {
    flex: 1;
    line-height: 1.5;
}

.privacy-link {
    color: #1A4D2A;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.privacy-link:hover {
    border-bottom-color: #1A4D2A;
    text-decoration: none;
}

.privacy-link:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Error state for checkbox */
.checkbox-group.error .checkmark {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.checkbox-group.error .checkbox-text {
    color: #dc3545;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .checkbox-label {
        font-size: 13px;
        gap: 10px;
    }
    
    .checkmark {
        height: 18px;
        width: 18px;
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkmark:after {
        left: 5px;
        top: 1px;
        width: 5px;
        height: 9px;
    }
}