@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

html {
    font-size: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --app-bg: #edf2f7;
    --app-card: #ffffff;
    --app-text: #0f172a;
    --app-muted: #64748b;
    --app-line: #dbe3ef;
    --app-primary: #3b82f6;
    --app-primary-2: #66a8ff;
    --app-dark: #081224;
    --app-dark-2: #0b1930;
    --app-dark-3: #112545;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
}

/* =========================================================
   APP LAYOUT
========================================================= */
.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: #fff;
    border-bottom: 1px solid #e6ecf4;
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-main {
    flex: 1 1 auto;
    padding: 28px 18px;
}

.app-page {
    max-width: 1600px;
    margin: 0 auto;
}

.app-footer {
    background: #fff;
    border-top: 1px solid #e6ecf4;
    padding: 18px 0;
    color: #667085;
}

.footer-title {
    font-weight: 700;
    color: #0f172a;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #64748b;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        color: #334155;
        text-decoration: none;
        transition: 0.2s ease;
    }

        .footer-social a:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

/* =========================================================
   NAVBAR
========================================================= */
.app-navbar {
    padding: 12px 0;
}

.app-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.app-home-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2563eb;
    text-decoration: none;
    border: 1px solid #dbe7ff;
}

    .app-home-btn:hover {
        color: #1d4ed8;
        background: #e5efff;
    }

.app-toggler {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 8px 10px;
}

.app-menu {
    margin-left: 26px;
    gap: 6px;
}

    .app-menu .nav-link {
        color: #334155 !important;
        font-weight: 600;
        font-size: 0.98rem;
        border-radius: 12px;
        padding: 10px 14px !important;
        transition: 0.2s ease;
    }

        .app-menu .nav-link:hover,
        .app-menu .nav-link:focus {
            background: #f1f5f9;
            color: #0f172a !important;
        }

.app-user-area {
    margin-left: auto;
}

.app-profile,
.app-logout {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.app-profile {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

    .app-profile:hover {
        background: #f1f5f9;
        color: #0f172a;
    }

.app-logout {
    border: 1px solid #fee2e2;
    background: #fff5f5;
    color: #dc2626;
}

    .app-logout:hover {
        background: #fee2e2;
    }

    .app-logout span,
    .app-profile span {
        line-height: 1;
    }

/* =========================================================
   GLOBAL FORM / BUTTON / CARD
========================================================= */
.form-control,
.form-select,
textarea {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid #d8e1ec;
    background: #f8fafc;
    color: #0f172a;
    box-shadow: none;
    padding: 0 16px;
    font-size: 1rem;
}

    textarea.form-control {
        min-height: 120px;
        padding: 14px 16px;
    }

    .form-control:focus,
    .form-select:focus,
    textarea:focus,
    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-check-input:focus {
        border-color: #8db7ff;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    }

label,
.form-label {
    font-weight: 700;
    font-size: 0.94rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.btn {
    min-height: 48px;
    border-radius: 16px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-primary {
    border: 0;
    background: linear-gradient(90deg, #2f74f6 0%, #63a6ff 100%);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.22);
}

    .btn-primary:hover {
        background: linear-gradient(90deg, #2366e7 0%, #5a9df8 100%);
    }

.btn-outline-secondary,
.btn-light {
    border: 1px solid #c8d3e0;
    background: #fff;
    color: #475569;
}

.card-modern,
.panel-soft,
.stat-card,
.form-panel {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.04);
}

/* =========================================================
   TABLE STYLE
========================================================= */
.table-modern,
.table {
    --bs-table-bg: transparent;
    border-collapse: separate;
    border-spacing: 0;
}

    .table-modern thead th,
    .table thead th {
        color: #334155;
        font-weight: 700;
        font-size: 0.92rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .table-modern td,
    .table td {
        vertical-align: middle;
        font-size: 0.95rem;
        color: #0f172a;
        border-color: #edf2f7;
    }

/* =========================================================
   AUTH PAGE - TARGET STYLE
========================================================= */
.auth-page.auth-page-v2 {
    background: radial-gradient(circle at 20% 20%, rgba(73, 121, 255, 0.18), transparent 28%), radial-gradient(circle at 80% 10%, rgba(24, 104, 255, 0.14), transparent 26%), linear-gradient(90deg, #081329 0%, #143267 100%);
}

.auth-page .app-main.auth-main {
    padding: 0;
    min-height: 100vh;
}

.login-v2-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-v2-frame {
    width: 100%;
    max-width: 1120px;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 41, 82, 0.72), rgba(8, 25, 52, 0.78));
    border: 1px solid rgba(120, 154, 214, 0.26);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.login-v2-left {
    position: relative;
    padding: 34px 32px 34px 32px;
    background: linear-gradient(180deg, rgba(40, 73, 140, 0.26), rgba(13, 42, 76, 0.3));
    border-right: 1px solid rgba(120, 154, 214, 0.2);
    overflow: hidden;
}

.login-v2-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(83, 111, 177, 0.3);
    border: 1px solid rgba(150, 180, 240, 0.18);
    color: #dce8ff;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

    .login-v2-badge i {
        color: #7fe4a8;
        font-size: 0.9rem;
    }

.login-v2-title {
    margin: 28px 0 16px;
    max-width: 430px;
    color: #f8fbff;
    font-size: 3.1rem;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-v2-desc {
    max-width: 440px;
    color: rgba(214, 227, 255, 0.78);
    font-size: 1.42rem;
    line-height: 1.55;
    margin: 0 0 26px;
}

.login-v2-feature-list {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-v2-feature-card {
    min-height: 84px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 18px;
    background: rgba(10, 26, 50, 0.34);
    border: 1px solid rgba(111, 143, 201, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.login-v2-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dfe9ff;
    font-size: 1rem;
    flex: 0 0 auto;
}

.login-v2-feature-title {
    color: #edf4ff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 6px;
}

.login-v2-feature-text {
    color: rgba(203, 217, 242, 0.72);
    font-size: 1.05rem;
    line-height: 1.45;
}

.login-v2-visual {
    position: absolute;
    inset: auto 0 0 0;
    height: 260px;
    pointer-events: none;
}

.login-v2-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(0px);
}

.login-v2-glow-one {
    width: 360px;
    height: 360px;
    right: -14px;
    bottom: -160px;
    background: radial-gradient(circle, rgba(44, 214, 158, 0.36) 0%, rgba(44, 214, 158, 0.18) 40%, rgba(44, 214, 158, 0) 72%);
}

.login-v2-glow-two {
    width: 280px;
    height: 280px;
    right: 76px;
    bottom: -116px;
    background: radial-gradient(circle, rgba(97, 240, 155, 0.22) 0%, rgba(97, 240, 155, 0.11) 42%, rgba(97, 240, 155, 0) 76%);
}

.login-v2-mini-card {
    position: absolute;
    right: 56px;
    bottom: 44px;
    width: 180px;
    height: 132px;
    border-radius: 20px;
    background: rgba(20, 38, 61, 0.86);
    border: 1px solid rgba(115, 146, 195, 0.14);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.login-v2-mini-top {
    width: 108px;
    height: 12px;
    border-radius: 999px;
    background: rgba(179, 200, 229, 0.22);
    margin: 18px auto 12px;
}

.login-v2-mini-line {
    width: 96px;
    height: 10px;
    border-radius: 999px;
    background: rgba(179, 200, 229, 0.15);
    margin: 12px auto 0;
}

    .login-v2-mini-line.short {
        width: 78px;
    }

.login-v2-mini-plus {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #1ea95c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* RIGHT */
.login-v2-right-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: radial-gradient(circle at 75% 20%, rgba(31, 90, 201, 0.12), transparent 32%), linear-gradient(180deg, rgba(3, 15, 39, 0.9), rgba(4, 14, 33, 0.96));
}

.login-v2-right-card {
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 21, 48, 0.94) 0%, rgba(5, 16, 36, 0.97) 100%);
    border: 1px solid rgba(95, 126, 184, 0.16);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.03);
    padding: 28px 24px 22px;
}

.login-v2-form-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
}

.login-v2-form-lock {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(51, 86, 150, 0.55), rgba(29, 58, 109, 0.55));
    border: 1px solid rgba(117, 150, 209, 0.16);
    color: #a9c6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 auto;
}

.login-v2-form-head h2 {
    margin: 0;
    color: #f2f7ff;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.login-v2-form-head p {
    margin: 8px 0 0;
    color: rgba(198, 211, 236, 0.68);
    font-size: 1.15rem;
    line-height: 1.4;
}

.login-v2-form {
    margin: 0;
}

.login-v2-field {
    margin-bottom: 18px;
}

    .login-v2-field label {
        display: inline-block;
        margin-bottom: 10px;
        color: rgba(223, 234, 255, 0.86);
        font-size: 1.05rem;
        font-weight: 600;
    }

.login-v2-input-wrap {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: rgba(29, 42, 68, 0.9);
    border: 1px solid rgba(90, 113, 157, 0.42);
    overflow: hidden;
    transition: 0.2s ease;
}

    .login-v2-input-wrap:focus-within {
        border-color: rgba(104, 145, 224, 0.82);
        box-shadow: 0 0 0 4px rgba(69, 111, 198, 0.14);
    }

.login-v2-input-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(209, 222, 245, 0.78);
    font-size: 1rem;
    border-right: 1px solid rgba(90, 113, 157, 0.28);
}

.login-v2-input {
    width: 100%;
    height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #eaf1ff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0 16px;
    box-shadow: none !important;
}

    .login-v2-input::placeholder {
        color: rgba(179, 194, 222, 0.48);
        font-weight: 600;
    }

.login-v2-password-row {
    display: flex;
    gap: 10px;
}

.login-v2-show-btn {
    height: 58px;
    min-width: 72px;
    border-radius: 16px;
    border: 1px solid rgba(90, 113, 157, 0.42);
    background: rgba(31, 43, 67, 0.96);
    color: rgba(227, 237, 255, 0.88);
    font-size: 1rem;
    font-weight: 700;
    padding: 0 16px;
}

    .login-v2-show-btn:hover {
        background: rgba(42, 58, 92, 0.96);
    }

.login-v2-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 20px;
    color: rgba(213, 224, 245, 0.76);
    font-size: 0.98rem;
}

    .login-v2-remember .form-check-input {
        margin: 0;
        border-color: rgba(134, 156, 196, 0.6);
        background-color: transparent;
    }

    .login-v2-remember label {
        margin: 0;
        color: rgba(213, 224, 245, 0.72);
        font-size: 0.98rem;
        font-weight: 500;
    }

.login-v2-submit {
    width: 100%;
    height: 60px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(90deg, #3d82f6 0%, #65abff 100%);
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 30px rgba(50, 118, 244, 0.28), inset 0 1px 0 rgba(255,255,255,0.16);
}

    .login-v2-submit:hover {
        background: linear-gradient(90deg, #3276eb 0%, #5ea3f8 100%);
    }

.login-v2-bottom {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(182, 199, 229, 0.82);
    font-size: 0.95rem;
}

    .login-v2-bottom a {
        color: rgba(214, 228, 255, 0.88);
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 991.98px) {
    .login-v2-frame {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-v2-left {
        display: none;
    }

    .login-v2-right-wrap {
        padding: 18px;
    }

    .login-v2-right-card {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .app-main {
        padding: 16px 12px;
    }

    .login-v2-shell {
        padding: 14px;
    }

    .login-v2-frame {
        border-radius: 20px;
        min-height: unset;
    }

    .login-v2-right-card {
        padding: 22px 16px 18px;
        border-radius: 20px;
    }

    .login-v2-form-head h2 {
        font-size: 1.7rem;
    }

    .login-v2-form-head p {
        font-size: 1rem;
    }

    .login-v2-password-row {
        flex-direction: column;
    }

    .login-v2-show-btn {
        width: 100%;
    }

    .app-menu {
        margin-left: 0;
        margin-top: 14px;
    }

    .app-user-area {
        margin-top: 14px;
        flex-wrap: wrap;
    }
}
.login-v2-title {
    font-size: 2.2rem !important;
    font-weight: 500 !important;
}

.login-v2-feature-title {
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.login-v2-feature-text {
    font-size: 0.9rem !important;
}

.login-v2-input {
    font-size: 0.95rem !important;
}

.login-v2-form-head h2 {
    font-size: 1.6rem !important;
    font-weight: 500 !important;
}
