﻿:root {
    color-scheme: light;
    --ds-blue-900: #0B2A4A;
    --ds-blue-800: #0D3B66;
    --ds-blue-700: #0F4C81;
    --ds-blue-600: #1562A5;
    --ds-blue-500: #1E7BC2;
    --ds-green-600: #6FA22E;
    --ds-green-500: #7FB539;
    --ds-gray-100: #F4F6F8;
    --ds-gray-200: #E6EAF0;
    --ds-gray-300: #D1D7E0;
    --ds-gray-500: #7A8699;
    --ds-gray-700: #3C4759;
    --ds-gray-800: #242D3D;
    --ds-gray-900: #121826;
    --ds-bg: #FAFBFC;
    --ds-border: #E6EAF0;
    --ds-border-strong: #D1D7E0;
    --ds-text: #242D3D;
    --ds-text-muted: #7A8699;
    --ds-danger: #E04956;
    --ds-radius-sm: 8px;
    --ds-radius: 12px;
    --ds-radius-lg: 16px;
    --ds-radius-pill: 9999px;
    --ds-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    --ds-shadow: 0 4px 12px rgba(16, 24, 40, 0.07), 0 2px 4px rgba(16, 24, 40, 0.04);
    --ds-ease: cubic-bezier(.2, .8, .2, 1);
    --ds-dur: 180ms;
    --ds-font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--ds-bg);
    color: var(--ds-text);
    font-family: var(--ds-font-sans);
    min-height: 100%;
}

body {
    min-height: 100vh;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--ds-blue-600);
    text-decoration: none;
    transition: color var(--ds-dur) var(--ds-ease);
}

    a:hover {
        color: var(--ds-blue-800);
        text-decoration: none;
    }

.ds-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@@media (max-width: 991px) {
    .ds-auth-shell {
        grid-template-columns: 1fr;
    }
}

/* LEFT PANEL */
.ds-auth-hero {
    background: radial-gradient(900px 600px at 110% -10%, rgba(127, 181, 57, 0.25), transparent 60%), linear-gradient(135deg, var(--ds-blue-900) 0%, var(--ds-blue-700) 60%, var(--ds-blue-500) 120%);
    color: #fff;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.ds-auth-hero::before {
    content: "";
    position: absolute;
    right: -180px;
    top: -180px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.06), transparent 70%);
}

.ds-auth-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    z-index: 1;
}

.ds-auth-hero__brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ds-green-500), var(--ds-blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.ds-auth-hero__tagline {
    z-index: 1;
}

    .ds-auth-hero__tagline h1 {
        font-size: 42px;
        line-height: 1.15;
        margin-bottom: 18px;
        color: #fff;
        font-weight: 700;
    }

    .ds-auth-hero__tagline p {
        font-size: 16px;
        line-height: 1.7;
        color: rgba(255,255,255,0.82);
        max-width: 460px;
    }

.ds-auth-hero__meta {
    margin-top: 28px;
    font-size: 12px;
    color: rgba(255,255,255,0.62);
}

/* RIGHT PANEL */
.ds-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 40px;
    background: #fff;
}

.ds-auth-form {
    width: 100%;
    max-width: 420px;
}

    .ds-auth-form h2 {
        font-size: 28px;
        font-weight: 700;
        color: var(--ds-gray-900);
        margin-bottom: 6px;
    }

.ds-auth-sub {
    color: var(--ds-text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.logo {
    margin-bottom: 24px;
    text-align: center;
}

    .logo img {
        max-height: 90px;
        margin: auto;
    }

.form-group {
    margin-bottom: 18px;
}

.control-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-gray-700);
}

.form-control {
    width: 100%;
    height: 46px;
    border-radius: var(--ds-radius-sm);
    border: 1px solid var(--ds-border-strong);
    padding: 10px 14px;
    font-size: 14px;
    transition: all var(--ds-dur) var(--ds-ease);
    box-shadow: none;
}

    .form-control:focus {
        border-color: var(--ds-blue-500);
        box-shadow: 0 0 0 3px rgba(30, 123, 194, 0.15);
    }

.ds-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}

.rememberme {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
    color: var(--ds-gray-700);
}

    .rememberme input[type=checkbox] {
        width: 16px;
        height: 16px;
    }

.btn-submit {
    width: 100%;
    border: 0;
    border-radius: var(--ds-radius-pill);
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: var(--ds-green-500);
    color: #fff;
    transition: all var(--ds-dur) var(--ds-ease);
}

    .btn-submit:hover {
        background: var(--ds-green-600);
        box-shadow: var(--ds-shadow);
        transform: translateY(-1px);
    }

.ds-auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: var(--ds-text-muted);
}

/* ALERT */
.alert {
    border-radius: var(--ds-radius);
    padding: 12px 16px;
    margin-bottom: 18px;
    border-left: 4px solid var(--ds-danger);
}

.alert-danger {
    background: #FDECEE;
    color: #8A1F29;
}

.display-hide {
    display: none !important;
}

.close {
    background: transparent;
    border: 0;
    font-size: 18px;
    float: right;
    cursor: pointer;
}


/* Tablet */
@media (max-width: 991px) {

    .ds-auth-shell {
        grid-template-columns: 1fr;
    }

    .ds-auth-hero {
        min-height: auto;
        padding: 40px 28px;
    }

    .ds-auth-hero__tagline h1 {
        font-size: 34px;
    }

    .ds-auth-form-wrap {
        padding: 40px 24px;
    }

    .ds-auth-form {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {

    body {
        background: #fff;
    }

    .ds-auth-shell {
        display: block;
    }

    .ds-auth-hero {
        padding: 28px 20px;
        text-align: center;
        min-height: auto;
    }

    .ds-auth-hero__brand {
        justify-content: center;
        font-size: 24px;
    }

    .ds-auth-hero__brand-mark {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .ds-auth-hero__tagline h1 {
        font-size: 28px;
        line-height: 1.25;
        margin-bottom: 14px;
    }

    .ds-auth-hero__tagline p {
        font-size: 14px;
        line-height: 1.6;
        max-width: 100%;
        margin: auto;
    }

    .ds-auth-hero__meta {
        margin-top: 20px;
    }

    .ds-auth-form-wrap {
        padding: 32px 20px;
    }

    .ds-auth-form h2 {
        font-size: 24px;
        text-align: center;
    }

    .ds-auth-sub {
        text-align: center;
        margin-bottom: 24px;
    }

    .form-control {
        height: 44px;
        font-size: 14px;
    }

    .ds-auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-submit {
        padding: 12px 14px;
        font-size: 13px;
    }

    .ds-auth-footer {
        margin-top: 24px;
        padding-bottom: 10px;
    }

    .alert {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .ds-auth-hero {
        padding: 24px 16px;
    }

    .ds-auth-form-wrap {
        padding: 28px 16px;
    }

    .ds-auth-hero__tagline h1 {
        font-size: 24px;
    }

    .ds-auth-form h2 {
        font-size: 22px;
    }

    .control-label {
        font-size: 12px;
    }

    .form-control {
        padding: 10px 12px;
    }
}