@import url("https://fonts.bunny.net/css?family=plus-jakarta-sans:400,500,600,700|sora:600,700&display=swap");

:root {
    --bg-0: #f0faf6;
    --bg-1: #e4f4ef;
    --accent: #0d9488;
    --accent-2: #14b8a6;
    --accent-deep: #0f766e;
    --accent-glow: rgba(13, 148, 136, 0.28);
    --panel-dark: #0c4a44;
    --panel-mid: #0f766e;
    --card: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --muted: #64748b;
    --input-bg: rgba(255, 255, 255, 0.96);
    --input-border: rgba(148, 163, 184, 0.35);
    --input-focus: rgba(13, 148, 136, 0.55);
    --radius: 16px;
    --shadow: 0 20px 60px rgba(15, 118, 110, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
}

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

html,
body {
    height: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
}

.dashboard-login {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: 1fr 1fr;
}

.dashboard-login__hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 3.5rem);
    color: #ecfdf5;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(45, 212, 191, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 90%, rgba(56, 189, 248, 0.18) 0%, transparent 50%),
        linear-gradient(155deg, var(--panel-dark) 0%, var(--panel-mid) 45%, #115e59 100%);
}

.dashboard-login__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.dashboard-login__hero-top,
.dashboard-login__hero-main,
.dashboard-login__hero-bottom {
    position: relative;
    z-index: 1;
}

.dashboard-login__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dashboard-login__brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

.dashboard-login__brand span {
    font-family: "Sora", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-login__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #99f6e4;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.dashboard-login__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5eead4;
    box-shadow: 0 0 8px #5eead4;
}

.dashboard-login__hero h1 {
    font-family: "Sora", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 16ch;
}

.dashboard-login__hero p {
    margin-top: 1rem;
    max-width: 28rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(236, 253, 245, 0.82);
}

.dashboard-login__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-top: 2.5rem;
}

.dashboard-login__stat {
    padding: 1rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.dashboard-login__stat-icon {
    font-size: 1.25rem;
    margin-bottom: 0.45rem;
}

.dashboard-login__stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(236, 253, 245, 0.75);
    line-height: 1.35;
}

.dashboard-login__hero-bottom {
    font-size: 0.78rem;
    color: rgba(236, 253, 245, 0.45);
}

.dashboard-login__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse 90% 50% at 100% 0%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 70% 40% at 0% 100%, rgba(125, 211, 252, 0.1) 0%, transparent 45%),
        linear-gradient(180deg, #f8fffe 0%, var(--bg-0) 100%);
}

.dashboard-login__form-wrap {
    width: min(100%, 400px);
    animation: enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dashboard-login__form-wrap h2 {
    font-family: "Sora", sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.dashboard-login__form-wrap > p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.dashboard-login__mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.dashboard-login__mobile-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
}

.field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.field-header label {
    margin-bottom: 0;
}

.field-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.field-link:hover {
    text-decoration: underline;
}

.input-wrap {
    position: relative;
}

.input-wrap svg.icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-wrap input {
    width: 100%;
    padding: 0.85rem 0.95rem 0.85rem 2.75rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input::placeholder {
    color: #94a3b8;
}

.input-wrap input:focus {
    outline: none;
    border-color: var(--input-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.input-wrap:focus-within svg.icon {
    color: var(--accent);
}

.input-wrap--password input {
    padding-right: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password:hover {
    color: var(--text);
    background: rgba(13, 148, 136, 0.08);
}

.form-footer {
    display: flex;
    align-items: center;
    margin: 0.15rem 0 1.35rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.remember input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 24px var(--accent-glow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.submit:hover:not(:disabled) {
    box-shadow: 0 6px 32px var(--accent-glow);
    transform: translateY(-1px);
}

.submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit svg {
    width: 18px;
    height: 18px;
}

.card-foot {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
}

.card-foot a {
    color: var(--accent-deep);
    font-weight: 600;
    text-decoration: none;
}

.card-foot a:hover {
    text-decoration: underline;
}

.card-foot span {
    margin: 0 0.35rem;
    opacity: 0.4;
}

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

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

@media (max-width: 960px) {
    .dashboard-login {
        grid-template-columns: 1fr;
    }

    .dashboard-login__hero {
        display: none;
    }

    .dashboard-login__mobile-logo {
        display: block;
    }

    .dashboard-login__panel {
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-login__form-wrap {
        animation: none;
    }
}
