/* Vijout Login — Premium Institutional Design */

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

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

.vlt-page {
    --vlt-blue: #1565FF;
    --vlt-blue-light: #2979FF;
    --vlt-green: #1ED760;
    --vlt-green-light: #34D399;
    --vlt-dark: #1E293B;
    --vlt-gray: #64748B;
    --vlt-gray-light: #E2E8F0;
    --vlt-text-muted: #94A3B8;
    --vlt-bg: #FFFFFF;
    --vlt-bg-secondary: #F8FAFC;
    --vlt-transition: all 0.25s ease;

    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    color: var(--vlt-dark);
    -webkit-font-smoothing: antialiased;
}

.vlt-wrapper {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* ── Main Card ── */
.vlt-card {
    width: 100%;
    max-width: 1440px;
    min-height: 820px;
    background: var(--vlt-bg);
    border-radius: 28px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 20px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 45% 55%;
    opacity: 0;
    transform: scale(0.98) translateY(12px);
    animation: vlt-scale-in 0.6s ease forwards;
}

@keyframes vlt-scale-in {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Left Column ── */
.vlt-left {
    position: relative;
    background: var(--vlt-bg);
    padding: 80px 70px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vlt-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.vlt-logo img {
    height: 40px;
    width: auto;
}

.vlt-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.vlt-logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--vlt-dark);
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.vlt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--vlt-bg-secondary);
    border: 1px solid var(--vlt-gray-light);
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 11px;
    font-weight: 600;
    color: var(--vlt-gray);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
    width: fit-content;
}

.vlt-badge-dot {
    color: var(--vlt-green);
    font-size: 14px;
}

.vlt-headline {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--vlt-dark);
    margin: 0 0 28px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.03em;
}

.vlt-headline-gradient {
    background: linear-gradient(90deg, var(--vlt-blue), var(--vlt-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vlt-description {
    font-size: 22px;
    line-height: 1.7;
    color: var(--vlt-gray);
    margin: 0 0 40px;
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.vlt-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.vlt-benefit {
    background: var(--vlt-bg);
    border: 1px solid var(--vlt-gray-light);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: default;
    transition: var(--vlt-transition);
    opacity: 0;
    transform: translateY(16px);
}

.vlt-benefit.vlt-visible {
    opacity: 1;
    transform: translateY(0);
}

.vlt-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.vlt-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vlt-benefit-icon.blue {
    background: rgba(21, 101, 255, 0.1);
    color: var(--vlt-blue);
}

.vlt-benefit-icon.green {
    background: rgba(30, 215, 96, 0.12);
    color: #059669;
}

.vlt-benefit-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--vlt-dark);
    margin: 0 0 2px;
}

.vlt-benefit-desc {
    font-size: 13px;
    color: var(--vlt-text-muted);
    margin: 0;
}

/* Background chart decoration */
.vlt-chart-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.vlt-chart-bg svg {
    width: 100%;
    height: 100%;
}

/* ── Right Column ── */
.vlt-right {
    background: var(--vlt-bg);
    padding: 90px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vlt-form-header {
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(12px);
    animation: vlt-fade-up 0.5s ease 0.15s forwards;
}

@keyframes vlt-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vlt-form-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.vlt-form-title-blue { color: var(--vlt-blue); }
.vlt-form-title-green { color: var(--vlt-green); }

.vlt-form-subtitle {
    font-size: 22px;
    color: var(--vlt-gray);
    margin: 0;
}

/* Flash messages */
.vlt-alerts {
    margin-bottom: 20px;
}

.vlt-alert {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vlt-alert-danger {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #DC2626;
}

.vlt-alert-success {
    background: rgba(30, 215, 96, 0.08);
    border: 1px solid rgba(30, 215, 96, 0.2);
    color: #059669;
}

.vlt-alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
}

.vlt-alert-close:hover { opacity: 1; }

/* Form fields */
.vlt-field {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(12px);
    animation: vlt-fade-up 0.5s ease forwards;
}

.vlt-field:nth-child(1) { animation-delay: 0.2s; }
.vlt-field:nth-child(2) { animation-delay: 0.28s; }

.vlt-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--vlt-dark);
    margin-bottom: 10px;
}

.vlt-input-group {
    display: flex;
    align-items: stretch;
    height: 72px;
    border: 1px solid var(--vlt-gray-light);
    border-radius: 18px;
    background: var(--vlt-bg);
    overflow: hidden;
    transition: var(--vlt-transition);
}

.vlt-input-group:focus-within {
    border-color: var(--vlt-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.08);
}

.vlt-input-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 18px 0 0 18px;
    color: #fff;
}

.vlt-input-icon.user {
    background: linear-gradient(180deg, var(--vlt-blue-light), var(--vlt-blue));
}

.vlt-input-icon.lock {
    background: linear-gradient(180deg, var(--vlt-green-light), var(--vlt-green));
}

.vlt-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: var(--vlt-dark);
    padding: 0 20px;
    font-family: inherit;
    min-width: 0;
}

.vlt-input::placeholder {
    color: var(--vlt-text-muted);
    font-weight: 400;
}

.vlt-toggle-pwd {
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--vlt-text-muted);
    cursor: pointer;
    transition: var(--vlt-transition);
    flex-shrink: 0;
}

.vlt-toggle-pwd:hover { color: var(--vlt-blue); }

/* Remember & forgot */
.vlt-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    animation: vlt-fade-up 0.5s ease 0.35s forwards;
}

.vlt-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.vlt-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--vlt-gray-light);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: var(--vlt-transition);
    flex-shrink: 0;
}

.vlt-checkbox:checked {
    background: var(--vlt-blue);
    border-color: var(--vlt-blue);
}

.vlt-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vlt-checkbox:focus-visible {
    outline: 2px solid var(--vlt-blue);
    outline-offset: 2px;
}

.vlt-checkbox-label {
    font-size: 14px;
    color: var(--vlt-gray);
    font-weight: 500;
}

.vlt-forgot {
    font-size: 14px;
    font-weight: 600;
    color: var(--vlt-blue);
    text-decoration: none;
    transition: var(--vlt-transition);
}

.vlt-forgot:hover { text-decoration: underline; }

/* Submit button */
.vlt-submit {
    width: 100%;
    height: 72px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--vlt-blue), var(--vlt-green));
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(21, 101, 255, 0.18);
    transition: var(--vlt-transition);
    font-family: inherit;
    opacity: 0;
    animation: vlt-fade-up 0.5s ease 0.4s forwards;
}

.vlt-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(21, 101, 255, 0.25);
}

.vlt-submit:active {
    transform: translateY(-1px);
}

.vlt-submit:focus-visible {
    outline: 3px solid rgba(21, 101, 255, 0.4);
    outline-offset: 3px;
}

/* Register section */
.vlt-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 24px;
    opacity: 0;
    animation: vlt-fade-up 0.5s ease 0.48s forwards;
}

.vlt-divider-line {
    flex: 1;
    height: 1px;
    background: var(--vlt-gray-light);
}

.vlt-divider-text {
    font-size: 14px;
    color: var(--vlt-text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.vlt-register-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vlt-register-card {
    background: var(--vlt-bg);
    border: 1px solid var(--vlt-gray-light);
    border-radius: 22px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: var(--vlt-transition);
    opacity: 0;
    transform: translateY(12px);
    animation: vlt-fade-up 0.5s ease forwards;
}

.vlt-register-card:nth-child(1) { animation-delay: 0.52s; }
.vlt-register-card:nth-child(2) { animation-delay: 0.58s; }

.vlt-register-card:hover {
    border-color: var(--vlt-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.vlt-register-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.vlt-register-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vlt-register-icon.blue {
    background: rgba(21, 101, 255, 0.1);
    color: var(--vlt-blue);
}

.vlt-register-icon.green {
    background: rgba(30, 215, 96, 0.12);
    color: #059669;
}

.vlt-register-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--vlt-dark);
    margin: 0 0 4px;
}

.vlt-register-desc {
    font-size: 13px;
    color: var(--vlt-text-muted);
    margin: 0;
}

.vlt-register-arrow {
    color: var(--vlt-text-muted);
    transition: var(--vlt-transition);
    flex-shrink: 0;
}

.vlt-register-card:hover .vlt-register-arrow {
    color: var(--vlt-blue);
    transform: translateX(4px);
}

/* Security footer inside form */
.vlt-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    font-size: 13px;
    color: var(--vlt-text-muted);
    opacity: 0;
    animation: vlt-fade-up 0.5s ease 0.65s forwards;
}

.vlt-security svg {
    color: var(--vlt-green);
}

/* Page footer */
.vlt-page-footer {
    text-align: center;
    opacity: 0;
    animation: vlt-fade-up 0.5s ease 0.7s forwards;
}

.vlt-page-footer-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--vlt-dark);
    margin: 0 0 6px;
}

.vlt-page-footer-tagline {
    font-size: 14px;
    margin: 0;
}

.vlt-tag-gray  { color: var(--vlt-gray); font-weight: 500; }
.vlt-tag-blue  { color: var(--vlt-blue); font-weight: 600; }
.vlt-tag-green { color: var(--vlt-green); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .vlt-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .vlt-left {
        padding: 48px 40px 40px;
    }

    .vlt-headline {
        font-size: 48px;
    }

    .vlt-description {
        font-size: 18px;
    }

    .vlt-chart-bg {
        height: 180px;
    }

    .vlt-right {
        padding: 48px 40px 56px;
    }

    .vlt-form-title {
        font-size: 42px;
    }

    .vlt-form-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .vlt-page {
        padding: 20px 16px;
    }

    .vlt-card {
        border-radius: 20px;
    }

    .vlt-left,
    .vlt-right {
        padding: 32px 24px;
    }

    .vlt-logo {
        justify-content: center;
    }

    .vlt-badge {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .vlt-headline {
        font-size: 36px;
        text-align: center;
    }

    .vlt-description {
        font-size: 16px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .vlt-form-header {
        text-align: center;
    }

    .vlt-form-title {
        font-size: 32px;
    }

    .vlt-form-subtitle {
        font-size: 16px;
    }

    .vlt-input-group {
        height: 64px;
    }

    .vlt-input-icon {
        width: 64px;
        height: 64px;
    }

    .vlt-submit {
        height: 64px;
        font-size: 20px;
    }

    .vlt-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .vlt-chart-bg {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vlt-card,
    .vlt-benefit,
    .vlt-form-header,
    .vlt-field,
    .vlt-options,
    .vlt-submit,
    .vlt-divider,
    .vlt-register-card,
    .vlt-security,
    .vlt-page-footer {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
