/* Modern Account Section Styles */
.account-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(145deg, #fff 0%, #f8fafe 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.account-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f26722, #ff6b3d, #f26722);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.account-tabs {
    display: flex;
    margin-bottom: 40px;
    background: #f1f3f8;
    border-radius: 15px;
    padding: 6px;
    position: relative;
}

.tab-button {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}

.tab-button.active {
    color: #fff;
    background: linear-gradient(135deg, #f26722, #ff6b3d);
    box-shadow: 0 8px 25px rgba(242, 103, 34, 0.3);
    transform: translateY(-2px);
}

.tab-button:hover:not(.active) {
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.tab-content {
    display: none;
    animation: slideInFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active-tab {
    display: block;
}

/* Enhanced Form Styles */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.account-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.account-form .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-form .form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background-color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    font-family: inherit;
}

.account-form .form-group input:focus {
    outline: none;
    border-color: #f26722;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(242, 103, 34, 0.1);
    transform: translateY(-2px);
}

.account-form .form-group input::placeholder {
    color: #a0aec0;
    transition: opacity 0.3s ease;
}

.account-form .form-group input:focus::placeholder {
    opacity: 0.6;
}

.password-hint {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.password-hint i {
    margin-right: 5px;
}

/* Password Toggle Styles */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #718096;
    font-size: 18px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #f26722;
    background-color: rgba(242, 103, 34, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: #f26722;
}

.password-toggle.active {
    color: #f26722;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
}

.remember-me:hover {
    color: #2d3748;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #f26722;
    cursor: pointer;
}

.forgot-password {
    color: #f26722;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f26722;
    transition: width 0.3s ease;
}

.forgot-password:hover::after {
    width: 100%;
}

.forgot-password:hover {
    color: #d44a00;
}

.account-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #f26722, #ff6b3d);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(242, 103, 34, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.account-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.account-button:hover::before {
    left: 100%;
}

.account-button:hover {
    background: linear-gradient(135deg, #d44a00, #e55a2b);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(242, 103, 34, 0.4);
}

.account-button:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(242, 103, 34, 0.3);
}

.account-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* reCAPTCHA styling */
.recaptcha-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recaptcha-container .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 480px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }
}

/* Enhanced Social Login Styles */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.divider p {
    margin: 0 20px;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    padding: 0 10px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-button:hover::before {
    opacity: 1;
}

.social-button.google {
    color: #db4437;
    border-color: #db4437;
}

.social-button.google:hover {
    background: #db4437;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(219, 68, 55, 0.3);
}

.social-button.facebook {
    color: #4267B2;
    border-color: #4267B2;
}

.social-button.facebook:hover {
    background: #4267B2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 103, 178, 0.3);
}

.terms {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.terms a {
    color: #f26722;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.terms a:hover {
    color: #d44a00;
    text-decoration: underline;
}

/* Enhanced Alert Styles */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideInAlert 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.alert.success {
    background: linear-gradient(135deg, #f0fff4, #e6fffa);
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.alert.error {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.alert i {
    font-size: 18px;
    opacity: 0.8;
}

.alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.alert a:hover {
    opacity: 0.8;
}

/* Enhanced Animations */
@keyframes slideInFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInAlert {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .account-container {
        margin: 20px;
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .tab-button {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .account-form .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .account-button {
        padding: 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .account-container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .account-tabs {
        margin-bottom: 30px;
        padding: 4px;
    }
    
    .tab-button {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .account-container {
        background: linear-gradient(145deg, #1a202c 0%, #2d3748 100%);
        color: #e2e8f0;
    }
    
    .account-form .form-group label {
        color: #e2e8f0;
    }
    
    .account-form .form-group input {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .account-form .form-group input:focus {
        background-color: #1a202c;
    }
    
    .terms {
        background: #2d3748;
        border-color: #4a5568;
        color: #a0aec0;
    }
}

/* Loading states */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #f26722;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}