﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface2: #f9f7f3;
    --border: #e4ddd0;
    --border2: #d6cfc0;
    --gold: #b08a3e;
    --gold-btn: #c9a84c;
    --gold-btn2: #e8c97a;
    --text: #1a1610;
    --text2: #4a4030;
    --muted: #9a8f7a;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    background: var(--bg);
    font-family: 'DM Sans',sans-serif;
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.left-panel {
    position: relative;
    z-index: 1;
    width: 52%;
    min-height: 100vh;
    background: linear-gradient(145deg,#1e3a5f 0%,#162c4a 60%,#0e1e32 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        top: -120px;
        right: -120px;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(201,168,76,0.18),transparent 70%);
        pointer-events: none;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle,rgba(201,168,76,0.1),transparent 70%);
        pointer-events: none;
    }

.panel-geo {
    position: absolute;
    bottom: 60px;
    right: -40px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 50%;
    pointer-events: none;
}

.panel-geo2 {
    position: absolute;
    bottom: 90px;
    right: -10px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.left-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 72px;
}

.logo-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg,var(--gold-btn),var(--gold-btn2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

    .logo-box svg {
        width: 22px;
        height: 22px
    }

.logo-name {
    font-family: 'DM Serif Display',serif;
    font-size: 22px;
    color: #fff;
    letter-spacing: 2px;
}

.left-headline {
    font-family: 'DM Serif Display',serif;
    font-size: 42px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
}

    .left-headline em {
        font-style: italic;
        color: var(--gold-btn2);
    }

.left-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 320px;
    font-weight: 300;
}

.left-stats {
    display: flex;
    gap: 32px;
    margin-top: 56px;
}

.stat {
    border-left: 2px solid rgba(201,168,76,0.4);
    padding-left: 16px;
}

.stat-num {
    font-family: 'DM Serif Display',serif;
    font-size: 26px;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.left-bottom {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
}

.right-panel {
    position: relative;
    z-index: 1;
    width: 48%;
    min-height: 100vh;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 64px;
    border-left: 1px solid var(--border);
}

.form-wrap {
    width: 100%;
    max-width: 360px;
}

.form-greeting {
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 12px;
}

.form-title {
    font-family: 'DM Serif Display',serif;
    font-size: 34px;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 10px;
}

.form-sub {
    font-size: 14px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 36px;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text2);
    font-weight: 500;
    margin-bottom: 8px;
}

.input-wrap {
    position: relative;
}

    .input-wrap .icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 15px;
        height: 15px;
        color: var(--muted);
        pointer-events: none;
        transition: color 0.2s;
    }

input[type=email], input[type=password], input[type=text] {
    width: 100%;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    font-family: 'DM Sans',sans-serif;
    font-size: 14px;
    padding: 13px 15px 13px 44px;
    outline: none;
    transition: border-color 0.2s,box-shadow 0.2s,background 0.2s;
}

    input[type=email]:focus, input[type=password]:focus, input[type=text]:focus {
        border-color: var(--gold-btn);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
    }

input::placeholder {
    color: var(--muted);
    font-size: 13px;
}

.input-wrap:focus-within .icon {
    color: var(--gold);
}

.toggle-pw {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: color 0.2s;
}

    .toggle-pw:hover {
        color: var(--gold);
    }

    .toggle-pw:focus {
        outline: none;
    }

.row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember input[type=checkbox] {
        width: 15px;
        height: 15px;
        accent-color: var(--gold-btn);
        cursor: pointer;
        padding: 0;
    }

    .remember span {
        font-size: 13px;
        color: var(--muted);
    }

.btn-signin {
    width: 100%;
    background: linear-gradient(135deg,#1e3a5f 0%,#2a5080 100%);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-family: 'DM Sans',sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(30,58,95,0.22);
    position: relative;
    overflow: hidden;
}

    .btn-signin:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 28px rgba(30,58,95,0.32);
    }

    .btn-signin:active {
        transform: translateY(0);
    }

    .btn-signin:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }
/* validation */
.error-box {
    background: #fdf0f0;
    border: 1.5px solid #f5c5c5;
    border-radius: 10px;
    color: #c0392b;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 18px;
    text-align: center;
}

.field-error {
    font-size: 11px;
    color: #c0392b;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.form-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

    .form-footer a {
        color: var(--gold);
        text-decoration: none;
        font-weight: 500;
    }

        .form-footer a:hover {
            color: var(--text);
        }

@keyframes shake {
    0%, 100% {
        transform: translateX(0)
    }

    20% {
        transform: translateX(-5px)
    }

    40% {
        transform: translateX(5px)
    }

    60% {
        transform: translateX(-3px)
    }

    80% {
        transform: translateX(3px)
    }
}

.shake {
    animation: shake 0.35s ease;
}

@media(max-width:800px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .left-panel {
        width: 100%;
        min-height: auto;
        padding: 36px 32px 40px;
    }

    .left-headline {
        font-size: 28px;
    }

    .left-stats {
        gap: 24px;
        margin-top: 32px;
    }

    .panel-geo, .panel-geo2 {
        display: none;
    }

    .right-panel {
        width: 100%;
        min-height: auto;
        padding: 48px 32px 52px;
        border-left: none;
        border-top: 1px solid var(--border);
    }
}
