/* Auth Styles */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(76, 201, 240, 0.1));
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

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

.auth-header {
    background-color: var(--primary);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.auth-body {
    padding: 30px;
}

.auth-footer {
    padding: 20px 30px;
    background-color: var(--light);
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s;
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form Styles */
.full-width-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.full-width-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark);
}

.link-secondary {
    color: var(--gray);
    transition: color 0.3s;
    text-decoration: none;
}

.link-secondary:hover {
    color: var(--primary);
}

.error-message {
    color: var(--danger);
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
    transition: all 0.3s ease;
}

/* Input with Icons */
.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    transition: color 0.3s ease;
}

.input-with-icon .form-control {
    padding-left: 40px;
    transition: all 0.3s ease;
    height: 48px;
}

.input-with-icon .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

.input-with-icon .form-control:focus + i {
    color: var(--primary);
}

/* Demo Accounts */
.demo-accounts {
    margin-top: 30px;
    border-top: 1px solid var(--gray-light);
    padding-top: 20px;
}

.demo-accounts-header {
    text-align: center;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 14px;
}

.demo-account-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.demo-account {
    background-color: #f5f7fb;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.demo-account i {
    color: var(--primary);
    font-size: 16px;
    transition: transform 0.2s ease;
}

.demo-account:hover {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(67, 97, 238, 0.2);
}

.demo-account.active {
    background-color: rgba(67, 97, 238, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.25);
}

.demo-account.active i {
    transform: scale(1.2);
}

/* Pulse Animation for Click Feedback */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 0.5s ease;
}

/* Login Notification */
.login-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-notification.success {
    background-color: #4caf50;
}

.login-notification.error {
    background-color: #f44336;
}

.login-notification.warning {
    background-color: #ff9800;
}

.login-notification.info {
    background-color: #2196f3;
}

/* Toggle Password Visibility */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Remember Me Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    font-size: 14px;
    cursor: pointer;
}

/* Social Login */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login-label {
    position: relative;
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.social-login-label:before,
.social-login-label:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--gray-light);
}

.social-login-label:before {
    left: 0;
}

.social-login-label:after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.google-btn {
    background-color: #DB4437;
}

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

.apple-btn {
    background-color: #000;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-header {
        padding: 20px;
    }
    
    .auth-body, .auth-footer {
        padding: 20px;
    }
    
    .demo-account-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .demo-account {
        justify-content: center;
    }

    .social-login-label:before,
    .social-login-label:after {
        width: 25%;
    }
}

@media (max-width: 400px) {
    .demo-account-list {
        grid-template-columns: 1fr;
    }
    
    .demo-account {
        width: 100%;
    }
}