@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --abtpe-navy: #122c75;
    --abtpe-blue: #2159bd;
    --abtpe-sky: #51a6e7;
    --ink: #15213d;
    --muted: #66728b;
    --line: #e5eaf3;
    --surface: #ffffff;
    --soft-shadow: 0 24px 70px rgba(30, 62, 118, 0.13);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: 3px; }

.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(245, 249, 255, .96), rgba(238, 247, 255, .92) 48%, rgba(249, 247, 255, .95)),
        #f4f8ff;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
}

.ambient-one {
    width: 500px;
    height: 500px;
    top: -260px;
    right: -100px;
    background: rgba(80, 164, 230, .16);
}

.ambient-two {
    width: 380px;
    height: 380px;
    bottom: -220px;
    left: -100px;
    background: rgba(44, 83, 175, .10);
}

.auth-shell {
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 30px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.auth-intro {
    position: relative;
    min-height: 640px;
    padding: 64px 58px;
    overflow: hidden;
    align-items: center;
    color: #fff;
    background: linear-gradient(145deg, #112b72 0%, #1f50ad 58%, #398ed1 100%);
}

.auth-intro::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    top: -120px;
    right: -95px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255, 255, 255, .04), 0 0 0 85px rgba(255, 255, 255, .03);
}

.auth-intro-content { position: relative; z-index: 2; }

.eyebrow,
.mobile-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .1);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-intro h1 {
    max-width: 440px;
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 3.05rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.1;
}

.auth-intro p {
    max-width: 450px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, .78);
    font-size: 1.03rem;
    line-height: 1.75;
}

.intro-features { display: grid; gap: 14px; }

.intro-features > div {
    display: flex;
    gap: 13px;
    align-items: center;
    color: rgba(255, 255, 255, .94);
    font-size: .9rem;
    font-weight: 600;
}

.intro-features i {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    font-size: 1.05rem;
}

.intro-glow {
    position: absolute;
    right: -100px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(104, 204, 255, .18);
    filter: blur(4px);
}

.auth-form-panel { display: flex; align-items: center; }

.auth-form-wrap { width: 100%; padding: 54px 62px; }

.brand img,
.dashboard-brand img {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand img { height: 55px; }
.form-title { margin-bottom: 8px; font-size: 1.75rem; font-weight: 800; letter-spacing: -.035em; }
.form-subtitle { color: var(--muted); font-size: .93rem; line-height: 1.65; }

.mobile-eyebrow {
    margin-bottom: 14px;
    border-color: #d9e6f8;
    color: var(--abtpe-blue);
    background: #f0f6ff;
}

.form-label { margin-bottom: 8px; color: #25314c; font-size: .83rem; font-weight: 700; }

.app-input-group {
    overflow: hidden;
    border: 1px solid #dfe5ef;
    border-radius: 13px;
    background: #fbfcff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.app-input-group:focus-within {
    border-color: #74a6e7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 89, 189, .09);
}

.app-input-group .input-group-text,
.app-input-group .form-control,
.app-input-group .btn {
    min-height: 52px;
    border: 0;
    background: transparent;
}

.app-input-group .input-group-text { padding-left: 17px; color: #8792a8; }
.app-input-group .form-control { padding-left: 9px; color: var(--ink); font-size: .92rem; box-shadow: none; }
.app-input-group .form-control::placeholder { color: #a1aabd; }
.password-toggle { padding: 0 17px; color: #78849a; }
.password-toggle:hover, .password-toggle:focus { color: var(--abtpe-blue); }
.forgot-link { color: var(--abtpe-blue); font-size: .79rem; font-weight: 700; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.app-primary-btn {
    display: flex;
    min-height: 53px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(105deg, #183d8c, #2461c7);
    box-shadow: 0 11px 24px rgba(28, 76, 169, .22);
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.app-primary-btn:hover,
.app-primary-btn:focus {
    background: linear-gradient(105deg, #14377f, #1e57b7);
    box-shadow: 0 14px 28px rgba(28, 76, 169, .28);
    transform: translateY(-1px);
}

.app-primary-btn:disabled { transform: none; }

.security-note {
    display: flex;
    gap: 7px;
    justify-content: center;
    margin: 22px 0 0;
    color: #8b94a6;
    font-size: .72rem;
}

.security-note i { color: #4fa583; }
.app-alert { display: flex; gap: 10px; align-items: center; border: 0; border-radius: 12px; font-size: .82rem; }
.app-alert .btn-close { margin-left: auto; font-size: .64rem; }
.page-footer { display: flex; gap: 5px 18px; align-items: center; justify-content: center; margin: 22px 0 0; color: #98a2b5; font-size: .72rem; text-align: center; }
.page-footer a,
.dashboard-footer a { color: var(--abtpe-blue); font-weight: 800; text-decoration: none; }
.page-footer a:hover,
.dashboard-footer a:hover { text-decoration: underline; }

.modal-backdrop.show { opacity: .72; backdrop-filter: blur(3px); }
.recovery-modal .modal-content { overflow: hidden; border: 0; border-radius: 22px; box-shadow: 0 28px 85px rgba(4, 16, 44, .35); }
.recovery-modal .modal-header { align-items: flex-start; border-bottom: 1px solid #e8edf5; padding: 20px 24px 17px; background: #fff; }
.recovery-modal .modal-title { margin-top: 3px; color: var(--ink); font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; }
.modal-kicker { display: inline-flex; gap: 6px; align-items: center; color: var(--abtpe-blue); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recovery-frame { display: block; width: 100%; height: min(70vh, 700px); border: 0; background: #f6f8fc; }
.recovery-modal .modal-footer { gap: 8px; justify-content: center; border-top: 1px solid #e8edf5; padding: 12px 20px; color: #8a94a6; background: #fbfcfe; font-size: .72rem; }
.recovery-modal .modal-footer a { color: var(--abtpe-blue); font-weight: 800; text-decoration: none; }
.recovery-modal .modal-footer a:hover { text-decoration: underline; }

/* Dashboard */
.dashboard-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(145deg, #f6f9ff 0%, #f1f8fd 52%, #f8f7ff 100%);
}

.dashboard-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.dashboard-orb-one { width: 420px; height: 420px; top: 90px; right: -240px; background: rgba(74, 158, 224, .09); }
.dashboard-orb-two { width: 340px; height: 340px; bottom: -170px; left: -180px; background: rgba(70, 74, 181, .07); }

.dashboard-header {
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(218, 226, 240, .8);
    padding: 17px 0;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 5px 25px rgba(38, 68, 117, .04);
    backdrop-filter: blur(18px);
}

.dashboard-brand img { height: 42px; }
.logout-btn { display: flex; gap: 8px; align-items: center; border: 1px solid #dde4ef; border-radius: 11px; padding: 9px 15px; color: #526078; background: #fff; font-size: .8rem; font-weight: 700; }
.logout-btn:hover { border-color: #cfd9e9; color: var(--abtpe-navy); background: #f8faff; }
.dashboard-main { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 25px; }
.dashboard-alert { max-width: 520px; margin-bottom: 22px; box-shadow: 0 8px 25px rgba(32, 110, 77, .06); }

.welcome-panel {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    overflow: hidden;
    border-radius: 25px;
    padding: 46px 50px;
    color: #fff;
    background: linear-gradient(118deg, #122c75, #2055b5 61%, #3b93d2);
    box-shadow: 0 22px 48px rgba(27, 68, 153, .18);
}

.dashboard-eyebrow { margin-bottom: 18px; }
.welcome-panel h1 { max-width: 750px; margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.045em; }
.welcome-panel p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .98rem; }
.welcome-avatar { display: grid; flex: 0 0 112px; width: 112px; height: 112px; margin-left: 30px; place-items: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 16px rgba(255, 255, 255, .04); font-size: 3rem; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin: 0 0 6px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .84rem; }
.services-count { border: 1px solid #dce4f0; border-radius: 999px; padding: 7px 12px; color: #77839a; background: rgba(255, 255, 255, .7); font-size: .7rem; font-weight: 700; }
.service-grid > div { display: flex; }

.service-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 350px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(220, 228, 240, .95);
    border-radius: 21px;
    padding: 29px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 35px rgba(36, 65, 110, .07);
    backdrop-filter: blur(12px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card::after { content: ''; position: absolute; top: 0; right: 0; width: 110px; height: 110px; border-radius: 0 0 0 100%; opacity: .07; background: currentColor; }
.service-card:hover { border-color: #d3deee; box-shadow: 0 20px 42px rgba(36, 65, 110, .11); transform: translateY(-4px); }
.service-icon { display: grid; width: 55px; height: 55px; margin-bottom: 24px; place-items: center; border-radius: 16px; font-size: 1.45rem; }
.service-card-blue { color: #1e58b8; }
.service-card-blue .service-icon { color: #205abd; background: #eaf2ff; }
.service-card-cyan { color: #147f9d; }
.service-card-cyan .service-icon { color: #1589a8; background: #e5f7fb; }
.service-card-violet { color: #7152b8; }
.service-card-violet .service-icon { color: #7552bf; background: #f0eafe; }
.service-tag { margin-bottom: 9px; color: currentColor; font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.service-card h3 { margin: 0 0 11px; color: var(--ink); font-size: 1.25rem; font-weight: 800; letter-spacing: -.025em; }
.service-card p { margin: 0 0 28px; color: var(--muted); font-size: .83rem; line-height: 1.7; }
.service-link { display: inline-flex; gap: 8px; align-items: center; margin-top: auto; color: currentColor; font-size: .81rem; font-weight: 800; text-decoration: none; }
.service-link i { transition: transform .2s ease; }
.service-link:hover i { transform: translate(2px, -2px); }
.service-link.disabled { color: #99a2b4; }
.is-coming { background: rgba(255, 255, 255, .72); }
.app-toast { border: 1px solid #e3e8f0; border-radius: 13px; box-shadow: 0 14px 35px rgba(35, 52, 83, .15); }
.app-toast .toast-body { display: flex; gap: 10px; align-items: center; color: #46536b; font-size: .82rem; }
.app-toast i { color: #7552bf; font-size: 1.1rem; }
.dashboard-footer { display: flex; justify-content: space-between; margin-top: 54px; border-top: 1px solid #dfe6f0; padding: 22px 2px; color: #8c97aa; font-size: .7rem; }
.dashboard-footer .footer-secure { display: inline-flex; gap: 6px; align-items: center; }
.dashboard-footer i { color: #4f9f7f; }

@media (max-width: 991.98px) {
    .auth-shell { max-width: 570px; margin: 0 auto; }
    .auth-form-wrap { padding: 48px 52px; }
    .welcome-panel { min-height: 210px; padding: 38px; }
    .welcome-avatar { flex-basis: 90px; width: 90px; height: 90px; font-size: 2.4rem; }
}

@media (max-width: 575.98px) {
    .auth-page .container { padding-right: 16px; padding-left: 16px; }
    .auth-shell { border-radius: 23px; }
    .auth-form-wrap { padding: 35px 24px 32px; }
    .brand img { height: 47px; }
    .form-title { font-size: 1.55rem; }
    .page-footer { margin-top: 16px; }
    .page-footer { flex-direction: column; }
    .dashboard-header { padding: 13px 0; }
    .dashboard-brand img { height: 35px; }
    .logout-btn { padding: 8px 11px; }
    .dashboard-main { padding-top: 28px; }
    .welcome-panel { min-height: 220px; margin-bottom: 36px; padding: 30px 25px; }
    .welcome-panel h1 { font-size: 2rem; }
    .welcome-panel p { line-height: 1.65; }
    .welcome-avatar { display: none; }
    .section-heading { align-items: flex-start; }
    .services-count { display: none; }
    .service-card { min-height: 320px; padding: 25px; }
    .dashboard-footer { flex-direction: column; gap: 10px; align-items: center; margin-top: 36px; text-align: center; }
    .recovery-modal .modal-content { border-radius: 0; }
    .recovery-frame { height: calc(100vh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
