/* Auth Module Styles */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
    background-image: var(--auth-bg, none);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--auth-overlay-bg, radial-gradient(circle at center, rgba(var(--black-rgb), 0.1) 0%, rgba(var(--black-rgb), 0.8) 100%));
    pointer-events: none;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 20px;
    padding: 45px;
    border-radius: 24px;
    position: relative;
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: none !important;
}

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

.auth-logo-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.auth-logo-box .icon-lg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.auth-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-alert-error {
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--danger);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.btn-auth-submit {
    margin-top: 10px;
}

.auth-form .floating-group {
    margin-bottom: 25px;
}

.auth-form .floating-group .form-control:focus ~ .floating-label,
.auth-form .floating-group .form-control:not(:placeholder-shown) ~ .floating-label {
    background: var(--bg-card) !important; /* Dynamic background to mask the border */
}

.auth-session-warn {
    background: rgba(var(--warning-rgb, 245, 158, 11), 0.1);
    border: 1px solid rgba(var(--warning-rgb, 245, 158, 11), 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.auth-session-warn-text {
    color: var(--warning);
    font-size: 13px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Confirmation Page */
.confirm-card {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    max-width: 480px;
    border: 1px solid var(--border);
    box-shadow: none !important;
}

.confirm-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon-circle.success {
    background: rgba(var(--success-rgb, 34, 197, 94), 0.1);
    color: var(--success);
    border: 2px solid rgba(var(--success-rgb, 34, 197, 94), 0.3);
}

.confirm-icon-circle.error {
    background: rgba(var(--danger-rgb, 239, 68, 68), 0.1);
    color: var(--danger);
    border: 2px solid rgba(var(--danger-rgb, 239, 68, 68), 0.3);
}

.confirm-title {
    margin-top: 0;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.confirm-text {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
}