﻿:root {
                --bg-deep: #0c1222;
                --bg-mid: #101a34;
                --bg-soft: #172554;
                --card: #f8fafc;
                --card-border: #dbe5f2;
                --text-main: #0f172a;
                --text-muted: #5b6b83;
                --primary: #0ea5e9;
                --primary-2: #2563eb;
                --warning: #f59e0b;
            }

            * {
                box-sizing: border-box;
            }

            body {
                margin: 0;
                min-height: 100vh;
                font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
                background:
                    linear-gradient(155deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-soft) 100%);
                color: var(--text-main);
            }

            .auth-canvas {
                min-height: 100vh;
                padding: 1.3rem;
                display: grid;
                place-items: center;
            }

            .auth-shell {
                width: 100%;
                max-width: 560px;
                position: relative;
                z-index: 1;
            }

            .auth-logo-wrap {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 0 auto 0.85rem;
            }

            .auth-logo {
                width: 92px;
                height: 92px;
                object-fit: contain;
                filter: drop-shadow(0 12px 24px rgba(2, 6, 23, 0.28));
            }

            .auth-badge {
                margin: 0 auto 0.72rem;
                width: fit-content;
                border-radius: 999px;
                border: 1px solid rgba(191, 219, 254, 0.34);
                background: rgba(15, 23, 42, 0.38);
                color: #dbeafe;
                font-size: 0.72rem;
                letter-spacing: 0.1em;
                text-transform: uppercase;
                font-weight: 700;
                padding: 0.4rem 0.78rem;
            }

            .auth-card {
                border-radius: 24px;
                overflow: hidden;
                border: 1px solid rgba(191, 219, 254, 0.22);
                background: rgba(248, 250, 252, 0.98);
                box-shadow: 0 24px 46px rgba(2, 6, 23, 0.45);
            }

            .auth-top {
                padding: 1.25rem 1.3rem 1rem;
                border-bottom: 1px solid #dde7f4;
                background:
                    linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
            }

            .auth-headline {
                margin: 0;
                font-family: 'Sora', 'Space Grotesk', sans-serif;
                font-size: clamp(1.35rem, 2.2vw, 1.7rem);
                line-height: 1.2;
                font-weight: 800;
                color: #0f172a;
            }

            .auth-subtitle {
                margin: 0.42rem 0 0;
                color: var(--text-muted);
                font-size: 0.86rem;
                line-height: 1.45;
            }

            .auth-form-wrap {
                padding: 1.25rem 1.3rem 1.3rem;
            }

            .field {
                margin-bottom: 0.85rem;
            }

            .field-label {
                display: inline-block;
                font-size: 0.71rem;
                letter-spacing: 0.09em;
                text-transform: uppercase;
                color: #475569;
                font-weight: 800;
                margin-bottom: 0.3rem;
            }

            .field-input {
                position: relative;
            }

            .field-input .ik {
                position: absolute;
                left: 0.84rem;
                top: 50%;
                transform: translateY(-50%);
                color: #8ea0b8;
                font-size: 0.93rem;
                pointer-events: none;
            }

            .field-input .form-control {
                height: 47px;
                border-radius: 13px;
                border: 1px solid var(--card-border);
                background: #ffffff;
                box-shadow: none;
                color: #0f172a;
                font-size: 0.86rem;
                padding-left: 2.45rem;
                padding-right: 2.8rem;
            }

            .password-toggle {
                position: absolute;
                right: 0.5rem;
                top: 50%;
                transform: translateY(-50%);
                width: 34px;
                height: 34px;
                border: 0;
                border-radius: 10px;
                background: transparent;
                color: #71839b;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                transition: background 0.16s ease, color 0.16s ease;
            }

            .password-toggle:hover,
            .password-toggle:focus {
                background: #eef4fb;
                color: #0f172a;
                outline: none;
            }

            .password-toggle i {
                font-size: 1rem;
                pointer-events: none;
            }

            .field-input .form-control:focus {
                border-color: #7dd3fc;
                box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.16);
            }

            .auth-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin: 0.15rem 0 0.95rem;
            }

            .custom-control-label {
                color: #475569;
                font-size: 0.8rem;
                font-weight: 600;
            }

            .auth-submit {
                width: 100%;
                border: 0;
                border-radius: 13px;
                min-height: 45px;
                cursor: pointer;
                background: linear-gradient(180deg, var(--primary) 0%, var(--primary-2) 100%);
                color: #ffffff;
                font-size: 0.86rem;
                font-weight: 700;
                letter-spacing: 0.01em;
                box-shadow: 0 12px 20px rgba(37, 99, 235, 0.28);
                transition: transform 0.16s ease, box-shadow 0.16s ease;
            }

            .auth-submit:hover,
            .auth-submit:focus {
                color: #ffffff;
                transform: translateY(-1px);
                box-shadow: 0 14px 24px rgba(37, 99, 235, 0.34);
            }

            .auth-bottom-note {
                margin: 0.84rem 0 0;
                text-align: center;
                font-size: 0.74rem;
                color: #64748b;
            }

            .invalid-feedback {
                display: block;
                margin-top: 0.32rem;
                font-size: 0.76rem;
            }

            @media (min-width: 768px) {
                .auth-form-wrap {
                    padding: 1.35rem 1.4rem 1.4rem;
                }
            }

            @media (max-width: 575.98px) {
                .auth-canvas {
                    padding: 0.8rem;
                }

                .auth-logo {
                    width: 74px;
                    height: 74px;
                }

                .auth-card {
                    border-radius: 18px;
                }

                .auth-top {
                    padding: 1rem 0.95rem 0.9rem;
                }

                .auth-form-wrap {
                    padding-left: 0.95rem;
                    padding-right: 0.95rem;
                }
            }
