:root {
    --auth-bg: #f4f7fa;
    --primary-color: #4f46e5;
    --card-radius: 12px;
}

/* Background with a subtle professional pattern */
body.bg-auth {
    background-color: var(--auth-bg);
    background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
    background-size: 20px 20px; /* Subtle dot pattern */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px;
    padding-bottom: 2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    padding: 2.5rem;
    border-top: 5px solid var(--primary-color); /* Signifies security/action */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.auth-logo-section img {
    object-fit: contain;
    margin-bottom: 10px;
}

.auth-logo-section h4 {
    color: #1e293b;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.text-primary {
    color: var(--primary-color) !important;
}

hr {
    margin: 1.5rem 0;
    opacity: 0.1;
}

/* Form Improvements for @RenderBody() */
.auth-card .form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.auth-card .form-control:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    border-color: var(--primary-color);
}

.auth-card .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    margin-top: 1rem;
}

.auth-footer {
    color: #64748b;
    font-size: 0.85rem;
}

/* Animation for the card entry */
.auth-card {
    animation: slideUpAuth 0.5s ease-out;
}

/* --- Confirmation Specific Styles --- */

.success-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(79, 70, 229, 0.1); /* Matches your primary blue */
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: pulse success 2s infinite;
}

.info-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    font-size: 0.9rem;
    color: #475569;
    text-align: left;
}

/* Re-using your btn-primary from Auth for consistency */
.btn-primary {
    background-color: #4f46e5;
    border: none;
    padding: 12px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

@keyframes pulse-success {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

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

/* --- Status Icons --- */
.status-icon {
    font-size: 4rem;
    display: inline-block;
}

.status-icon.success-pulse {
    color: #10b981; /* Professional Emerald Green */
    animation: success-grow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-icon.error-shake {
    color: #ef4444; /* Enterprise Red */
    animation: shake 0.5s ease-in-out;
}

/* --- Content Styling --- */
.status-container h3 {
    letter-spacing: -0.5px;
}

/* --- Micro-Animations --- */
@keyframes success-grow {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
    75% { transform: translateX(-8px); }
}

/* Overriding the default card top border if it's an error */
.bg-auth .auth-card.border-danger {
    border-top-color: #ef4444;
}

/* --- Resend Email Specifics --- */

.resend-icon-wrapper {
    position: relative;
    display: inline-block;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto;
}

.check-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #10b981;
    color: white;
    border: 3px solid #ffffff;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.message-box {
    border-color: #e2e8f0 !important;
    line-height: 1.6;
}

/* --- Entry Animation --- */
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.resend-container {
    animation: fadeIn 0.4s ease-in;
}

/* --- Forgot Password Confirmation Specifics --- */

.status-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.bg-light-blue {
    background-color: rgba(79, 70, 229, 0.05) !important;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.icon-badge-success {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 2px solid #10b981;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.security-info-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.uppercase-tracking {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.security-info-box ul li {
    margin-bottom: 4px;
}

.security-info-box ul li:last-child {
    margin-bottom: 0;
}