/* Auth Pages Styles */
* {
    box-sizing: border-box;
}

:root {
    --auth-primary: var(--accent-color, #ff7700);
    --auth-primary-dark: var(--link-hover, #e65c00);
    --auth-primary-light: #ff9d4d;
    --auth-secondary: #4a89dc;
    --auth-secondary-dark: #3b6eb4;
    --auth-success: #37bc9b;
    --auth-warning: #f6bb42;
    --auth-danger: #da4453;
    --auth-light: #f5f7fa;
    --auth-dark: #333;
    --auth-gray: #aab2bd;
    --auth-border: #e6e9ed;
    --auth-shadow: rgba(0, 0, 0, 0.1);
    --auth-input-bg: #fff;
    --auth-input-border: #ddd;
    --auth-input-text: #333;
    --auth-input-placeholder: #999;
}

[data-theme="dark"] {
    --auth-light: #2c2c2c;
    --auth-dark: #f5f7fa;
    --auth-gray: #8c8c8c;
    --auth-border: #444;
    --auth-shadow: rgba(0, 0, 0, 0.3);
    --auth-input-bg: #222;
    --auth-input-border: #444;
    --auth-input-text: #f5f7fa;
    --auth-input-placeholder: #777;
}

/* Auth Container */
.auth-container {
    max-width: 450px;
    width: 100%;
    margin: 50px auto;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--auth-primary), var(--auth-primary-dark));
}

.auth-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
}

.auth-header h2 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header p {
    color: var(--secondary-text);
    font-size: 16px;
    margin-bottom: 0;
}

.auth-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb, 255, 119, 0), 0.3);
}

.auth-body {
    padding: 0 30px 30px;
}

.auth-form {
    margin-bottom: 20px;
    width: 100%;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--auth-input-border);
    border-radius: 8px;
    background-color: var(--auth-input-bg);
    color: var(--auth-input-text);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb, 255, 119, 0), 0.2);
    outline: none;
}

.form-control::placeholder {
    color: var(--auth-input-placeholder);
}

.form-control.is-invalid {
    border-color: var(--auth-danger);
}

.invalid-feedback {
    color: var(--auth-danger);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    color: var(--auth-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

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

.auth-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(var(--accent-color-rgb, 255, 119, 0), 0.3);
    text-align: center;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--accent-color-rgb, 255, 119, 0), 0.4);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(var(--accent-color-rgb, 255, 119, 0), 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary-text);
    font-size: 15px;
}

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

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

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--auth-border);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--secondary-text);
    font-size: 14px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px var(--auth-shadow);
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.google {
    background-color: #dd4b39;
}

.social-btn.twitter {
    background-color: #1da1f2;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px var(--auth-shadow);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--auth-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.auth-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.auth-alert i {
    margin-right: 10px;
    font-size: 18px;
}

.auth-alert.success {
    background-color: rgba(55, 188, 155, 0.1);
    color: var(--auth-success);
    border: 1px solid rgba(55, 188, 155, 0.2);
}

.auth-alert.danger {
    background-color: rgba(218, 68, 83, 0.1);
    color: var(--auth-danger);
    border: 1px solid rgba(218, 68, 83, 0.2);
}

.auth-alert.warning {
    background-color: rgba(246, 187, 66, 0.1);
    color: var(--auth-warning);
    border: 1px solid rgba(246, 187, 66, 0.2);
}

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

.auth-container {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 30px auto;
        width: 90%;
        max-width: 400px;
    }

    .form-group {
        position: relative;
    }

    .password-toggle {
        right: 10px;
        top: 42px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .social-login {
        gap: 10px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        width: 95%;
        margin: 20px auto;
    }

    .auth-header {
        padding: 20px 15px 10px;
    }

    .auth-body {
        padding: 0 15px 20px;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .auth-header p {
        font-size: 14px;
    }

    .auth-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 15px;
    }

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

    .form-group label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 10px;
        font-size: 14px;
    }

    .password-toggle {
        top: 38px;
        right: 8px;
    }

    .invalid-feedback {
        font-size: 12px;
    }

    .auth-btn {
        padding: 12px 15px;
        font-size: 15px;
    }

    .auth-footer {
        font-size: 14px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .auth-divider span {
        font-size: 12px;
        padding: 0 10px;
    }

    .remember-me label {
        font-size: 13px;
    }

    .forgot-password {
        font-size: 13px;
    }
}
