/* Auth Page Specific Styles */

/* Auth Section */
.auth-section {
    background: #F9FAFB;
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: #FFFFFF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    border-radius: 1rem;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.auth-header p {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #F9FAFB;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-tab.active {
    background: #FFFFFF;
    color: #7a866e;
    box-shadow: 0 4px 12px 0 rgba(122, 134, 110, 0.15), 0 2px 4px 0 rgba(0, 0, 0, 0.08);
    font-weight: 600;
    transform: translateY(-1px);
    animation: tabPulse 0.6s ease-out;
}

.auth-tab.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #7a866e;
    transform: scaleX(1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab:not(.active)::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #7a866e;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab:hover:not(.active) {
    color: #1F2937;
    background: rgba(122, 134, 110, 0.05);
    transform: translateY(-0.5px);
}

.auth-tab:hover:not(.active)::before {
    transform: scaleX(0.3);
}

.auth-tab i {
    font-size: 1rem;
}

/* Auth Form Container */
.auth-form-container {
    position: relative;
    margin-bottom: 1rem;
}

.auth-form {
    display: none !important;
}

.auth-form.active {
    display: block !important;
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1F2937;
    font-size: 0.875rem;
}

.optional {
    font-weight: 400;
    color: #6B7280;
    font-size: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #9ca3af;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: #1F2937;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.error {
    border-color: #EF4444;
}

.form-group input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3e%3cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

.error-message {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Options */
.form-options {
    margin-bottom: 1.5rem;
}

.checkbox-group {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.25rem;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #7a866e;
    border-color: #7a866e;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m13.854 3.646-7.5 7.5a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6 10.293l7.146-7.147a.5.5 0 0 1 .708.708z'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-group input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 134, 110, 0.1);
}

.checkbox-group label {
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6B7280;
    margin-bottom: 0;
    flex: 1;
}

.checkbox-group a {
    color: #7a866e;
    text-decoration: underline;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #7a866e;
    text-decoration: underline;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #6a7562;
    text-decoration: none;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    background: #7a866e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-auth:hover {
    background: #6a7562;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

/* Social Login */
.social-login {
    margin-bottom: 2rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

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

.divider span {
    background: #FFFFFF;
    color: #6B7280;
    padding: 0 1rem;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-social {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #1F2937;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.btn-social:hover {
    background: #F9FAFB;
    transform: translateY(-1px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.btn-facebook:hover {
    border-color: #4267B2;
    color: #4267B2;
}

.btn-social i {
    font-size: 1.125rem;
}

/* Auth Benefits */
.auth-benefits {
    background: #F9FAFB;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Forgot Password Styles */
.forgot-password-info {
    margin-bottom: 2rem;
}

.info-box {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-box i {
    color: #D97706;
    font-size: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-box p {
    margin: 0;
    color: #92400E;
    font-size: 0.875rem;
    line-height: 1.5;
}

.back-to-login {
    margin-top: 1.5rem;
    text-align: center;
}

.back-to-login p {
    margin: 0;
    font-size: 0.875rem;
    color: #6B7280;
}

.tab-link {
    color: #7a866e;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab-link:hover {
    color: #6a7562;
    text-decoration: none;
}

/* Registration Success Styles */
.success-container {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #10B981;
    animation: successPulse 1s ease-out;
}

.success-icon i.fa-envelope {
    color: #3B82F6;
}

.success-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.success-message {
    font-size: 1rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.btn-secondary {
    background: transparent;
    color: #7a866e;
    border: 2px solid #7a866e;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-secondary:hover {
    background: #7a866e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-benefits h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: lowercase;
}

.quick-register-note {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-register-note p {
    margin: 0;
    font-size: 0.875rem;
    color: #0c4a6e;
    line-height: 1.5;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #1F2937;
}

.benefit-item i {
    color: #7a866e;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Loading States */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tabPulse {
    0% {
        transform: translateY(-1px) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        transform: translateY(-1px) scale(1);
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        padding: 2rem 0;
    }
    
    .auth-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-tabs {
        margin-bottom: 1.5rem;
        background: #f8f9fa;
        padding: 0.5rem;
        border-radius: 0.75rem;
    }
    
    .auth-tab {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .auth-tab.active {
        background: white;
        color: #7a866e;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }
    
    .auth-tab:not(.active) {
        background: transparent;
        color: #6B7280;
    }
    
    .auth-tab:not(.active):hover {
        background: rgba(255, 255, 255, 0.7);
        color: #7a866e;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .benefit-item {
        font-size: 0.8rem;
    }
    
    .social-buttons {
        gap: 0.5rem;
    }
    
    .btn-social {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .checkbox-group {
        gap: 0.5rem;
    }
    
    .checkbox-group label {
        font-size: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.875rem;
    }
    
    .auth-tab {
        padding: 0.75rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .auth-tab i {
        font-size: 0.875rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .btn-auth {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .auth-benefits {
        padding: 1rem;
    }
    
    .auth-benefits h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .checkbox-group {
        gap: 0.375rem;
    }
    
    .checkbox-group label {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        margin-top: 0.125rem;
    }
}