﻿:root {
    --navy: #0F1C2E;
    --teal: #0EA5A0;
    --teal-light: #E6F8F7;
    --teal-dark: #0B8A86;
    --bg: #F0F4F8;
    --white: #FFFFFF;
    --border: #DDE3ED;
    --text: #0F1C2E;
    --sub: #5A677A;
    --muted: #8E9BB0;
    --green: #059669;
    --green-bg: #ECFDF5;
    --blue: #1D6FE8;
    --blue-bg: #EFF6FF;
    --amber: #B45309;
    --amber-bg: #FFFBEB;
    --red: #DC2626;
    --red-bg: #FEF2F2;
    --r: 14px;
    --r-sm: 10px;
    --font: 'Inter', sans-serif;
    --font-h: 'Space Grotesk', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--navy);
    color: var(--text);
}

#page-login {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

    #page-login::before {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(14, 165, 160, .25) 0%, transparent 70%);
        top: -80px;
        right: -80px;
        pointer-events: none;
    }

    #page-login::after {
        content: '';
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(14, 165, 160, .12) 0%, transparent 70%);
        bottom: 160px;
        left: -60px;
        pointer-events: none;
    }

.login-header {
    padding: 56px 28px 0;
    position: relative;
    z-index: 1;
}

.login-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.login-logo-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: 0 4px 14px rgba(14, 165, 160, .4);
}

.login-logo-name {
    font-family: var(--font-h);
    font-size: 18px;
    color: #fff;
    letter-spacing: .5px;
}

.login-headline {
    font-family: var(--font-h);
    font-size: 34px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.login-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
}

.login-sheet {
    flex: 1;
    margin-top: 36px;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 28px 24px 44px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
}

.login-sheet-title {
    font-family: var(--font-h);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-sheet-sub {
    font-size: 13px;
    color: var(--sub);
    margin-bottom: 24px;
}

@media(min-width:768px) {
    #page-login {
        flex-direction: row;
        align-items: stretch;
    }

    .login-header {
        flex: 1;
        padding: 60px 56px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-headline {
        font-size: 52px;
    }

    .login-sheet {
        width: 420px;
        flex-shrink: 0;
        margin-top: 0;
        border-radius: 0;
        padding: 52px 40px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: -12px 0 40px rgba(0, 0, 0, .15);
    }
}

@media(min-width:1100px) {
    .login-header {
        padding: 80px;
    }

    .login-sheet {
        width: 480px;
    }
}

.field-group {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sub);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 6px;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--muted);
}

.field-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 13px 13px 13px 40px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .field-input::placeholder {
        color: var(--muted);
    }

    .field-input:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px rgba(14, 165, 160, .12);
    }

.field-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 15px;
    padding: 4px;
}

.login-error {
    display: none;
    margin-bottom: 14px;
    background: var(--red-bg);
    border: 1px solid #FCA5A5;
    border-radius: var(--r-sm);
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--navy);
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 28, 46, .3);
    transition: opacity .2s, transform .15s;
    margin-top: 4px;
}

    .btn-primary:active {
        transform: scale(.98);
        opacity: .92;
    }

.login-divider {
    text-align: center;
    font-size: 11px;
    color: var(--muted);
    margin: 20px 0 16px;
    position: relative;
}

    .login-divider::before,
    .login-divider::after {
        content: '';
        position: absolute;
        top: 50%;
        height: 1px;
        background: var(--border);
        width: 38%;
    }

    .login-divider::before {
        left: 0;
    }

    .login-divider::after {
        right: 0;
    }

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.demo-tile {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 11px 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: left;
}

    .demo-tile:active {
        border-color: var(--teal);
        background: var(--teal-light);
    }

.demo-tile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.demo-tile-cred {
    font-size: 11px;
    color: var(--sub);
    margin-top: 1px;
}
