*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Inter', sans-serif !important;
    background:
        radial-gradient(circle at top left,
            rgba(43, 126, 232, .35),
            transparent 40%),

        radial-gradient(circle at bottom right,
            rgba(245, 197, 24, .22),
            transparent 35%),

        linear-gradient(135deg,
            #081120 0%,
            #0b1630 50%,
            #101b33 100%);
    height: 100% !important;
    overflow: hidden !important;
}

.navbar,
header,
.for-forgot,
.for-signup,
.for-email-login,
.for-login-with-email-link,
.sign-up-message,
.page-card-head {
    display: none !important;
}

.layout-main-section-wrapper,
.layout-main,
.container,
.row {
    height: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ===== CANVAS ANIMASI ===== */
#itd-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== LAYOUT UTAMA ===== */
.for-login {
    display: flex !important;
    height: 100vh !important;
    width: 100vw !important;
    position: relative;
    z-index: 1;
    overflow: hidden !important;
}

/* ===== PANEL KIRI ===== */
.itd-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

/* Logo pojok kiri atas */
.itd-brand {
    position: absolute;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
}

.itd-logo-box {
    width: 42px;
    height: 42px;
    background: #111118;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(43, 126, 232, 0.2);
    flex-shrink: 0;
}

.itd-brand-text {
    display: flex;
    flex-direction: column;
}

.itd-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.itd-brand-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.3;
}

/* Card Form — tepat tengah */
.itd-card {
    width: 100%;
    max-width: 360px;
    background: rgba(19, 19, 28, 0.92);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 32px 28px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

.itd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 126, 232, 0.6), rgba(245, 197, 24, 0.3), transparent);
}

.itd-card::after {
    content: '';

    position: absolute;

    width: 240px;
    height: 240px;

    background:
        radial-gradient(circle,
            rgba(43, 126, 232, .18),
            transparent 70%);

    top: -80px;
    right: -80px;

    z-index: -1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.itd-card-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.itd-card-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 24px;
}

/* Fields */
.itd-field-group {
    margin-bottom: 14px;
}

.itd-field-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.itd-field-wrap {
    position: relative;
}

.itd-field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: rgba(255, 255, 255, 0.22);
    pointer-events: none;
}

.itd-input,
.form-control {
    width: 100% !important;
    background: rgba(10, 10, 15, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px !important;
    padding: 11px 40px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    height: auto !important;
}

.itd-input:hover,
.form-control:hover {
    border-color: rgba(255, 255, 255, 0.13) !important;
}

.itd-input:focus,
.form-control:focus {
    border-color: #2B7EE8 !important;
    box-shadow: 0 0 0 3px rgba(43, 126, 232, 0.12) !important;
    background: rgba(43, 126, 232, 0.04) !important;
    outline: none !important;
}

.itd-input::placeholder,
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.16) !important;
}

.itd-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.itd-toggle-pw:hover {
    color: #2B7EE8;
}

/* Tombol login */
.page-card-actions {
    margin-top: 20px;
}

.itd-btn-login,
.btn-login,
.btn-primary {
    width: 100% !important;
    background: linear-gradient(135deg, #2B7EE8 0%, #1a5fc4 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 13px !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.2px;
}

.itd-btn-login:hover,
.btn-login:hover,
.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(43, 126, 232, 0.4) !important;
}

.itd-btn-login:active {
    transform: translateY(0) !important;
}

.itd-btn-login:disabled {
    opacity: 0.7 !important;
    transform: none !important;
    cursor: not-allowed !important;
}

/* Spinner animasi */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.itd-spin {
    animation: spin 0.8s linear infinite;
}

/* Alert */
.alert-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    border-radius: 10px !important;
    color: #ff7b87 !important;
    font-size: 12px !important;
    padding: 10px 14px !important;
    margin-bottom: 14px !important;
}

/* ===== PANEL KANAN ===== */
.itd-right {
    width: 220px;
    background: rgba(13, 13, 21, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 28px 18px;
    gap: 14px;
    backdrop-filter: blur(8px);
}

.itd-right-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 2px;
}

.itd-info-card {
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg,
            rgba(43, 126, 232, .18) 0%,
            rgba(43, 126, 232, .08) 45%,
            rgba(245, 197, 24, .12) 100%);

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 14px;

    padding: 14px;

    backdrop-filter: blur(10px);

    transition: all .25s ease;
}

.itd-info-card::before {
    content: '';

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: radial-gradient(circle,
            rgba(245, 197, 24, .20),
            transparent 70%);

    top: -60px;
    right: -60px;
}

.itd-info-card:hover {
    transform: translateY(-3px);

    border-color: rgba(43, 126, 232, .35);

    box-shadow:
        0 10px 24px rgba(43, 126, 232, .18),
        0 4px 12px rgba(245, 197, 24, .08);
}

.itd-erp {
    background:
        linear-gradient(135deg,
            rgba(43, 126, 232, .22),
            rgba(43, 126, 232, .08));
}

.itd-hrms {
    background:
        linear-gradient(135deg,
            rgba(245, 197, 24, .22),
            rgba(245, 197, 24, .08));
}

.itd-lam {
    background:
        linear-gradient(135deg,
            rgba(43, 126, 232, .15),
            rgba(245, 197, 24, .15));
}

.itd-info-accent {
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.itd-info-icon {
    font-size: 16px;
    margin-bottom: 5px;
}

.itd-info-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
}

.itd-info-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

.itd-right-footer {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.18);
    line-height: 1.8;
}

.itd-rrow {
    display: flex;
    justify-content: space-between;
}

/* ========================================
   LOGIN OVERLAY
======================================== */

.itd-login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, .82);
    backdrop-filter: blur(8px);
    border-radius: 20px;

    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    z-index: 50;
}

.itd-login-overlay.show {
    display: flex;
}

.itd-loader {
    width: 54px;
    height: 54px;
    border-radius: 50%;

    border: 4px solid rgba(255, 255, 255, .12);
    border-top-color: #2B7EE8;
    border-right-color: #F5C518;

    animation: itdSpin 0.9s linear infinite;
}

.itd-loader-text {
    margin-top: 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
}

@keyframes itdSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

    html,
    body {
        overflow: hidden !important;
    }

    .for-login {
        flex-direction: column !important;
        height: 100vh !important;
    }

    .itd-right {
        display: none !important;
    }

    .itd-left {
        width: 100% !important;
        padding: 16px !important;
        align-items: center;
        justify-content: center;
    }

    .itd-brand {
        top: 20px;
        left: 20px;
    }

    .itd-brand-name {
        font-size: 13px;
    }

    .itd-card {
        max-width: 100% !important;
        padding: 24px 20px !important;
    }

    .itd-badges {
        margin-top: 16px;
    }
}