﻿:root {
    --bg-page: #ffffff;
    --bg-input: #f8fafc;
    --border: #dde3ed;
    --border-focus: #3b82f6;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59,130,246,.22);
    --text-primary: #111827;
    --text-muted: #6b7280;
    --text-label: #374151;
    --error: #ef4444;
    --success: #22c55e;
    --radius: 10px;
    --transition: .2s ease;
}

#bg-canvas {
    display: none;
}

.page-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    padding-top: 30px;
    grid-template-columns: 1fr;
}

.panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-right: 1px solid #e5e9f2;
}

.form-card {
    box-shadow: 0 0 0 1px rgba(59,130,246,.12), 0 8px 32px rgba(59,130,246,.14), 0 2px 8px rgba(59,130,246,.08);
    border-radius: 16px;
    padding: 36px 36px 28px;
    background: #ffffff;
    width: 100%;
    max-width: 500px;
}

    .form-card h1 {
        font-family: 'Syne', sans-serif;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .form-card .subtitle {
        color: var(--text-muted);
        margin: 0 0 28px;
    }

.field-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.field-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .field-wrap label {
        font-weight: 500;
        color: var(--text-label);
        letter-spacing: .03em;
    }

        .field-wrap label::after {
            content: ' *';
            color: var(--accent);
        }

    .field-wrap input {
        background: var(--bg-input);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text-primary);
        font-family: 'Syne', sans-serif;
        padding: 11px 14px;
        outline: none;
        transition: border-color var(--transition), box-shadow var(--transition);
        width: 100%;
        box-sizing: border-box;
    }

        .field-wrap input::placeholder {
            color: var(--text-muted);
        }

        .field-wrap input:focus {
            border-color: var(--border-focus);
            box-shadow: 0 0 0 1px rgba(59,130,246,.12), 0 8px 32px rgba(59,130,246,.14), 0 2px 8px rgba(59,130,246,.08);
        }

        .field-wrap input.input-error {
            border-color: var(--error);
            box-shadow: 0 0 0 3px rgba(248,113,113,.18);
        }

        .field-wrap input.input-ok {
            border-color: var(--success);
        }

.field-error {
    color: var(--error);
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.terms-row {
    background: rgba(59,130,246,.06);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color var(--transition);
}

    .terms-row:hover {
        border-color: var(--accent);
    }

    .terms-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        accent-color: var(--accent);
        cursor: pointer;
        margin-top: 2px;
    }

    .terms-row label {
        color: var(--text-label);
        cursor: pointer;
        line-height: 1.5;
    }

        .terms-row label a,
        .terms-row label span.terms-link {
            color: var(--accent);
            text-decoration: underline;
            cursor: pointer;
        }

            .terms-row label a:hover,
            .terms-row label span.terms-link:hover {
                color: #1d4ed8;
            }

.btn-create {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform .1s ease, box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(59,130,246,.35);
}

    .btn-create:hover {
        background: var(--accent-hover);
        box-shadow: 0 6px 28px rgba(59,130,246,.45);
    }

    .btn-create:active {
        transform: scale(.98);
    }

    .btn-create:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
    }

.signin-hint {
    text-align: center;
    color: var(--text-muted);
    margin-top: 18px;
}

    .signin-hint a {
        color: var(--accent);
        text-decoration: none;
    }

        .signin-hint a:hover {
            text-decoration: underline;
        }

.panel-info {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: transparent;
}

.info-card {
    max-width: 500px;
}

    .info-card h2 {
        font-family: 'Syne', sans-serif;
        font-weight: 800;
        line-height: 1.15;
        color: var(--text-primary);
        margin: 0 0 16px;
    }

        .info-card h2 span {
            color: var(--accent);
        }

    .info-card .lead {
        color: var(--text-muted);
        line-height: 1.7;
        margin-bottom: 28px;
    }

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--border);
    }

        .feature-list li:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

.feat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(59,130,246,.12);
    border: 1px solid rgba(59,130,246,.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.feature-list li p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

    .feature-list li p strong {
        color: var(--text-primary);
        font-weight: 500;
    }

@media (max-width: 900px) {
    .panel-form {
        border-right: none;
        padding: 32px 20px;
    }
}

@media (min-width: 901px) {
    .page-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .modal-overlay.is-open {
        display: flex;
    }

.modal-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 44px 40px 36px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 0 0 1px rgba(59,130,246,.12), 0 24px 64px rgba(17,24,39,.18);
    text-align: center;
    position: relative;
    animation: modalIn .25s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(59,130,246,.1);
    border: 1.5px solid rgba(59,130,246,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: var(--accent);
    font-size: 24px;
}

.modal-box h2 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.modal-box p {
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 22px;
    font-size: 14px;
}

.modal-helper {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 24px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .modal-helper i {
        margin-top: 2px;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .modal-helper a {
        color: var(--accent);
        text-decoration: underline;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        font: inherit;
        font-size: 12px;
    }

        .modal-helper a:hover {
            color: var(--accent-hover);
        }

.btn-modal-close {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 20px rgba(59,130,246,.35);
}

    .btn-modal-close:hover {
        background: var(--accent-hover);
        box-shadow: 0 6px 28px rgba(59,130,246,.45);
    }
