:root {
    --tw-primary: #e5ee80;
    --tw-primary-hover: #d6df71;
    --tw-primary-active: #c7d062;
    --tw-primary-strong: #e5ee80;
    --tw-text: #333136;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    background: #ffffff;
    min-height: 100vh;
    color: var(--tw-text);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: #ffffff;
}

.auth-container-soft {
    background: #ffffff;
}

.forgot-password-page {
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    color: #333136;
}

.forgot-password-container {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.forgot-password-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.login-page {
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    color: #333136;
}

.login-container {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.login-card {
    border: 1px solid #e5e8f0;
    box-shadow: 0 18px 45px rgba(27, 34, 58, 0.08);
    border-radius: 16px;
    background: #ffffff;
}

.shadow-soft {
    box-shadow: 0 24px 65px rgba(27, 34, 58, 0.08);
}

.login-card-body {
    padding: 2rem;
}


.auth-container.confirm-wrapper {
    background: #ffffff;
}

.confirm-wrapper {
    width: 100%;
    background: #ffffff;
}

.confirm-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e8f0;
    box-shadow: 0 24px 70px rgba(27, 34, 58, 0.08);
}

.confirm-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    background: #f5f7fb;
    color: #6f7c92;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.confirm-icon.success {
    background: #ffffff;
    color: #e5ee80;
    border: 2px solid #e5ee80;
}

.confirm-icon.danger {
    background: #fff3f0;
    color: #c2412d;
}

.info-callout {
    border: 1px solid #e4e8f2;
    border-radius: 14px;
    background: #f8fafc;
    padding: 0.9rem 1rem;
}

.info-callout.success {
    border-color: #d4e7cb;
    background: #f3f8ed;
}

.info-callout.danger {
    border-color: #f2d3cd;
    background: #fff4f1;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eef1f7;
    color: #4b5563;
}

.info-icon.success {
    background: #ffffff;
    color: #e5ee80;
    border: 2px solid #e5ee80;
}

.info-icon.danger {
    background: #fff0ed;
    color: #c2412d;
}

.btn-primary {
    background-color: var(--tw-primary);
    border-color: var(--tw-primary);
    color: #333136;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(124, 145, 18, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tw-primary-hover);
    border-color: var(--tw-primary-hover);
    color: #333136;
}

.btn-primary:active {
    background-color: var(--tw-primary-active);
    border-color: var(--tw-primary-active);
    color: #333136;
}

.btn-link {
    color: #6b7280;
}

.btn-link:hover,
.btn-link:focus {
    color: #4b5563;
}

.link-muted {
    color: #6b7280;
    text-decoration: underline;
}

.link-muted:hover,
.link-muted:focus {
    color: #4b5563;
}

.forgot-card {
    max-width: 520px;
    margin: 0 auto;
    color: #000000;
}

.forgot-card h1 {
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.eyebrow {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--tw-primary);
    color: #6a7a05;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.eyebrow-ghost {
    background: rgba(229, 238, 128, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 14px 22px rgba(138, 161, 12, 0.15);
}

.login-card h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--tw-text);
}

.forgot-subtitle {
    color: #6b6c62;
    font-size: 1.02rem;
}

.form-label {
    color: #000000;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-left: 2.75rem;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #e1e4eb;
    background: #ffffff;
    color: #000000;
}

.input-icon-wrapper .form-control::placeholder {
    color: #000000;
    opacity: 1;
}

.input-icon-wrapper .form-control:focus {
    border-color: var(--tw-primary-strong);
    box-shadow: 0 0 0 4px rgba(138, 161, 12, 0.15);
    background: #ffffff;
}

.input-icon-left {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0b0;
}

.input-icon-wrapper.has-password-toggle .form-control {
    padding-right: 2.75rem;
}

.input-icon-wrapper .password-toggle-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9aa0b0;
    transition: color 0.2s ease;
    z-index: 10;
    font-size: 1rem;
}

.input-icon-wrapper .password-toggle-icon:hover {
    color: #333136;
}

.btn-primary-custom {
    background: var(--tw-primary-strong);
    border: none;
    color: #333136;
    font-weight: 700;
    padding: 0.95rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(138, 161, 12, 0.2);
    transition: all 0.25s ease;
}

.btn-primary-custom:hover {
    background: #d6df71;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(138, 161, 12, 0.28);
}

.btn-primary-custom-ghost {
    background: linear-gradient(180deg, #e5ee80 0%, #dfe76a 100%);
    box-shadow: 0 16px 35px rgba(138, 161, 12, 0.22);
}

.btn-primary-custom:focus {
    background: #d6df71;
    box-shadow: 0 18px 36px rgba(138, 161, 12, 0.28);
}

.link-highlight {
    color: #c7d062;
    font-weight: 600;
}

.link-highlight-ghost {
    color: #c7d062;
}

.link-highlight:hover,
.link-highlight:focus,
.link-highlight-ghost:hover,
.link-highlight-ghost:focus {
    color: #8a9e17;
}

.form-check-input:checked {
    background-color: var(--tw-primary-strong);
    border-color: var(--tw-primary-strong);
}

.text-danger.small {
    font-size: 0.875rem;
}

.alert-info.demo-alert {
    background: #f4f7ff;
    border: 1px solid #e0e7ff;
    color: #1d3d7a;
    border-radius: 12px;
}

.terms a {
    color: #e5ee80;
}

.register-page {
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333136;
}

.bg-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.bg-decoration-1,
.bg-decoration-2 {
    display: none;
}

.navbar-triplewin {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(222, 226, 230, 0.4);
    position: relative;
    z-index: 10;
}

.navbar-brand-triplewin {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #333136;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-triplewin .brand-logo {
    width: 38px;
    height: 38px;
}

.register-container {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.register-card {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.register-card h2 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--tw-primary);
    border-color: var(--tw-primary);
    color: #333136;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(124, 145, 18, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--tw-primary-hover);
    border-color: var(--tw-primary-hover);
    color: #333136;
}

.btn-primary:active {
    background-color: var(--tw-primary-active);
    border-color: var(--tw-primary-active);
    color: #333136;
}

.form-control:focus,
.form-select:focus {
    border-color: #e5ee80;
    box-shadow: 0 0 0 0.2rem rgba(229, 238, 128, 0.25);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-control {
    padding-left: 2.5rem;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #e1e4eb;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-with-icon.has-password-toggle .form-control {
    padding-right: 2.5rem;
}

.input-with-icon .password-toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
    z-index: 10;
    font-size: 1rem;
}

.input-with-icon .password-toggle-icon:hover {
    color: #333136;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
}

.search-input-wrapper .search-input {
    padding-left: 2.6rem;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #e1e4eb;
}

.search-input-wrapper .search-input.has-value {
    border-color: #c7d062;
}

.search-input-wrapper .dropdown-menu {
    max-height: 240px;
    overflow-y: auto;
    border-radius: 12px;
    padding: 0.5rem 0;
}

.search-input-wrapper .dropdown-item {
    padding: 0.65rem 1rem;
    color: #333136;
}

.search-input-wrapper .dropdown-item:hover,
.search-input-wrapper .dropdown-item:focus {
    background-color: rgba(199, 208, 98, 0.15);
    color: #333136;
}

.text-link {
    color: #c7d062;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .register-container,
    .login-container,
    .forgot-password-container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .auth-container {
        padding: 2rem 0;
    }

    .login-card,
    .register-card {
        border-radius: 12px;
    }

    .login-card-body {
        padding: 1.5rem;
    }

    .navbar-brand-triplewin {
        font-size: 1.25rem;
    }

    .navbar-brand-triplewin .brand-logo {
        width: 32px;
        height: 32px;
    }
}

/* ---------------------------------------------------------------
   Email confirmation result (landing page of the confirm link)
   Mirrors the confirmation email: white card, logo header, lime accent.
   --------------------------------------------------------------- */
.confirm-card {
    max-width: 560px;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
}

.confirm-card-head {
    padding: 30px 32px 0;
}

/* 44px is the standard logo height used across the app layouts. */
.auth-logo {
    display: inline-block;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.confirm-card-body {
    padding: 26px 32px 32px;
}

.confirm-badge {
    position: relative;
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
    margin-bottom: 18px;
    animation: confirmPop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.confirm-badge::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: confirmRing 1.6s ease-out 0.3s;
}

.confirm-badge.is-success {
    background: var(--tw-primary);
    color: #333136;
    box-shadow: 0 10px 20px rgba(198, 214, 62, 0.4);
}

.confirm-badge.is-error {
    background: #fff1ed;
    color: #c2412d;
    box-shadow: 0 10px 20px rgba(194, 65, 45, 0.15);
}

@keyframes confirmPop {
    from {
        transform: scale(0.6);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes confirmRing {
    from {
        opacity: 0.5;
        transform: scale(0.85);
    }

    to {
        opacity: 0;
        transform: scale(1.3);
    }
}

.confirm-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--tw-text);
    margin: 0 0 0.5rem;
}

.confirm-subtitle {
    max-width: 40ch;
    margin: 0 auto 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
}

.confirm-steps {
    list-style: none;
    text-align: left;
    margin: 0 0 1.75rem;
    padding: 0.9rem 1.1rem;
    background: #fafbfc;
    border: 1px solid #eef0f5;
    border-radius: 14px;
}

.confirm-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4b5563;
}

.confirm-step-num {
    flex: 0 0 24px;
    height: 24px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--tw-primary);
    color: #333136;
    font-size: 0.75rem;
    font-weight: 700;
}

.confirm-step-icon {
    flex: 0 0 24px;
    height: 24px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa2b1;
    font-size: 1rem;
}

.confirm-actions {
    display: grid;
    gap: 0.65rem;
    justify-items: stretch;
}

.confirm-cta {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.confirm-secondary {
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.confirm-secondary:hover,
.confirm-secondary:focus {
    color: #333136;
    text-decoration: underline;
}

.confirm-redirect {
    margin: 1.15rem 0 0;
    font-size: 0.8125rem;
    color: #8a90a0;
}

.confirm-cancel {
    padding: 0;
    border: 0;
    background: none;
    color: #6b7280;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.confirm-card-foot {
    padding: 16px 24px;
    background: #f8f9fa;
    border-top: 1px solid #eef0f5;
    font-size: 0.8125rem;
    color: #8a90a0;
}

.confirm-card-foot a {
    color: #6b7280;
    text-decoration: underline;
}

.confirm-card-foot a:hover,
.confirm-card-foot a:focus {
    color: #333136;
}

@media (max-width: 575.98px) {
    .confirm-card-head {
        padding: 24px 20px 0;
    }

    .confirm-card-body {
        padding: 22px 20px 26px;
    }

    .auth-logo {
        height: 38px;
    }

    .confirm-badge {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .confirm-title {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .confirm-badge,
    .confirm-badge::after {
        animation: none;
    }
}
