@import url('fonts.css');

        :root {
            --blue-deep: #1a2f8f;
            --blue: #2451d6;
            --teal: #12b886;

            --ink: #1f2937;
            --muted: #5f6778;

            --surface: #ffffff;
            --field-bg: #f3f5fb;

            --border: #dde4f0;

            --danger-bg: #fdecec;
            --danger-text: #b42318;

            --warning-bg: #fff6e5;
            --warning-text: #9a6700;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "IBM Plex Sans", sans-serif;
        }

        html {
            min-height: 100%;
        }

        body {
            min-height: 100vh;
            min-height: 100dvh;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            gap: 22px;

            padding: 24px;

            background:
                linear-gradient(135deg,
                    var(--blue-deep) 0%,
                    var(--blue) 45%,
                    var(--teal) 100%);

            overflow-x: hidden;
        }

        button,
        input {
            font-family: inherit;
        }

        a {
            text-decoration: none;
        }

        .auth-card {
            width: 100%;
            max-width: 920px;
            min-height: 520px;

            display: flex;

            background: var(--surface);

            border-radius: 28px;

            overflow: hidden;

            box-shadow:
                0 30px 70px rgba(10, 20, 60, .35);

            position: relative;
            z-index: 1;
        }

        .auth-visual {
            width: 46%;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            padding: 40px;

            text-align: center;

            background:
                linear-gradient(160deg,
                    var(--blue-deep) 0%,
                    var(--blue) 55%,
                    var(--teal) 130%);
        }

        #escola-img {
            width: 100%;
            max-width: 400px;
            max-height: 400px;

            height: auto;

            object-fit: contain;
        }

        .auth-visual p {
            max-width: 280px;

            margin-top: 24px;

            color: rgba(255, 255, 255, .92);

            font-size: 17px;
            font-weight: 500;

            line-height: 1.5;
        }

        .auth-form {
            flex: 1;

            display: flex;
            flex-direction: column;
            justify-content: center;

            padding: 48px 56px;

            min-width: 0;
        }

        .brand {
            display: flex;
            align-items: center;

            gap: 14px;

            margin-bottom: 30px;
        }

        .brand-logo {
            width: 52px;
            height: 52px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;

            border-radius: 50%;

            background: #fff;

            box-shadow:
                0 8px 18px rgba(36, 81, 214, .20);
        }

        .brand-logo img {
            width: 52px;
            height: 52px;

            object-fit: contain;
        }

        .brand-text {
            min-width: 0;
        }

        .brand-text h1 {
            color: var(--ink);

            font-size: 22px;
            font-weight: 800;

            line-height: 1.1;
        }

        .brand-text span {
            display: block;

            margin-top: 5px;

            color: var(--muted);

            font-size: 13px;
            font-weight: 500;
        }

        .field-group {
            margin-bottom: 18px;
        }

        .field-group label {
            display: block;

            margin-bottom: 7px;

            color: var(--ink);

            font-size: 13px;
            font-weight: 600;
        }

        .field-wrap {
            position: relative;

            width: 100%;

            display: flex;
            align-items: center;

            background: var(--field-bg);

            border: 1px solid transparent;

            border-radius: 12px;

            transition:
                background .2s ease,
                border-color .2s ease,
                box-shadow .2s ease;
        }

        .field-wrap:focus-within {
            background: #fff;

            border-color: var(--blue);

            box-shadow:
                0 0 0 4px rgba(36, 81, 214, .10);
        }

        .icon-left {
            width: 46px;
            min-width: 46px;
            height: 48px;

            display: flex;
            align-items: center;
            justify-content: center;

            color: var(--blue);

            pointer-events: none;
        }

        .field-wrap input {
            flex: 1;

            width: 100%;
            height: 48px;

            padding: 0 12px 0 0;

            border: none;
            outline: none;

            background: transparent;

            color: var(--ink);

            font-size: 15px;
        }

        .field-wrap input::placeholder {
            color: var(--muted);
            opacity: 1;
        }

        .icon-toggle {
            width: 44px;
            height: 44px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;

            margin-right: 2px;

            border: none;
            border-radius: 8px;

            background: transparent;

            color: var(--muted);

            cursor: pointer;

            transition:
                color .2s ease,
                background .2s ease;
        }

        .icon-toggle:hover {
            color: var(--blue);

            background: rgba(36, 81, 214, .06);
        }

        .icon-toggle:focus-visible {
            outline: 2px solid var(--blue);
            outline-offset: -2px;
        }

        .select-wrap {
            position: relative;
        }

        .custom-select {
            flex: 1;
            min-width: 0;

            position: relative;
        }

        .select-trigger {
            width: 100%;
            height: 48px;

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 12px;

            padding: 0 14px 0 0;

            border: none;
            outline: none;

            background: transparent;

            color: var(--muted);

            font-size: 14px;
            font-weight: 500;

            cursor: pointer;

            text-align: left;
        }

        .select-trigger.has-value {
            color: var(--ink);
        }

        .select-trigger:focus-visible {
            outline: none;
        }

        .select-trigger-text {
            min-width: 0;

            overflow: hidden;

            white-space: nowrap;

            text-overflow: ellipsis;
        }

        .select-arrow {
            width: 28px;
            height: 28px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;

            border-radius: 8px;

            color: var(--muted);

            transition:
                transform .2s ease,
                color .2s ease,
                background .2s ease;
        }

        .custom-select.open .select-arrow {
            transform: rotate(180deg);

            color: var(--blue);

            background: rgba(36, 81, 214, .08);
        }

        .select-options {
            position: fixed;

            z-index: 999999;

            width: 280px;

            max-height: 240px;

            overflow-y: auto;
            overflow-x: hidden;

            padding: 7px;

            background: #fff;

            border: 1px solid #e1e7f0;

            border-radius: 14px;

            box-shadow:
                0 20px 50px rgba(15, 23, 42, .18);

            opacity: 0;

            visibility: hidden;

            pointer-events: none;

            transform: translateY(-5px);

            transition:
                opacity .16s ease,
                transform .16s ease,
                visibility .16s ease;

            scrollbar-width: thin;

            scrollbar-color:
                #cbd5e1 transparent;
        }

        .select-options.visible {
            opacity: 1;

            visibility: visible;

            pointer-events: auto;

            transform: translateY(0);
        }

        .select-options::-webkit-scrollbar {
            width: 6px;
        }

        .select-options::-webkit-scrollbar-track {
            background: transparent;
        }

        .select-options::-webkit-scrollbar-thumb {
            background: #cbd5e1;

            border-radius: 10px;
        }

        .select-options::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .select-option {
            width: 100%;
            min-height: 48px;

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 12px;

            padding: 8px 10px;

            border: none;

            border-radius: 10px;

            background: transparent;

            color: var(--ink);

            font-size: 14px;
            font-weight: 500;

            cursor: pointer;

            text-align: left;

            transition:
                background .18s ease,
                color .18s ease;
        }

        .select-option:hover,
        .select-option:focus-visible {
            background: #eff4ff;

            color: var(--blue);

            outline: none;
        }

        .select-option.active {
            background: #eef3ff;

            color: var(--blue);

            font-weight: 600;
        }

        .option-content {
            display: flex;
            align-items: center;

            gap: 11px;

            min-width: 0;
        }

        .option-icon {
            width: 32px;
            height: 32px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;

            border-radius: 9px;

            background: #f2f5fb;

            color: #64748b;

            transition:
                background .18s ease,
                color .18s ease;
        }

        .select-option:hover .option-icon,
        .select-option.active .option-icon {
            background: #dfe8ff;

            color: var(--blue);
        }

        .option-check {
            width: 22px;
            height: 22px;

            display: flex;
            align-items: center;
            justify-content: center;

            flex-shrink: 0;

            color: var(--blue);

            opacity: 0;
        }

        .select-option.active .option-check {
            opacity: 1;
        }

        .btn-entrar {
            width: 100%;
            height: 50px;

            display: flex;
            align-items: center;
            justify-content: center;

            gap: 8px;

            margin-top: 6px;

            border: none;
            border-radius: 12px;

            background:
                linear-gradient(90deg,
                    var(--blue-deep),
                    var(--blue));

            color: #fff;

            font-size: 15px;
            font-weight: 700;

            cursor: pointer;

            transition:
                transform .2s ease,
                box-shadow .2s ease;
        }

        .btn-entrar:hover {
            transform: translateY(-2px);

            box-shadow:
                0 12px 24px rgba(36, 81, 214, .30);
        }

        .btn-entrar:active {
            transform: translateY(0);
        }

        .btn-entrar:focus-visible {
            outline: 3px solid rgba(36, 81, 214, .22);
            outline-offset: 3px;
        }

        .forgot-link {
            display: block;

            margin-top: 16px;

            color: var(--muted);

            font-size: 13.5px;

            text-align: center;

            transition: color .2s ease;
        }

        .forgot-link:hover {
            color: var(--blue);

            text-decoration: underline;
        }

        .alert-box {
            margin-top: 16px;

            display: flex;
            align-items: center;

            gap: 8px;

            padding: 12px 14px;

            border-radius: 10px;

            font-size: 13px;

            line-height: 1.4;
        }

        .alert-danger {
            background: var(--danger-bg);

            color: var(--danger-text);
        }

        .alert-warning {
            background: var(--warning-bg);

            color: var(--warning-text);
        }

        .page-footer {
            position: relative;

            z-index: 1;

            color: rgba(255, 255, 255, .86);

            font-size: 13px;

            text-align: center;
        }

        @media (max-width: 820px) {

            body {
                padding: 16px;
            }

            .auth-card {
                max-width: 430px;

                flex-direction: column;

                min-height: auto;

                border-radius: 22px;
            }

            .auth-visual {
                width: 100%;

                min-height: 190px;

                padding: 26px;
            }

            #escola-img {
                max-width: 150px;
                max-height: 150px;
            }

            .auth-visual p {
                margin-top: 12px;

                font-size: 14px;
            }

            .auth-form {
                width: 100%;

                padding: 34px 28px 32px;
            }

            .brand {
                margin-bottom: 24px;
            }

            .select-options {
                max-height: 220px;
            }
        }

        @media (max-width: 480px) {

            body {
                padding: 12px;
            }

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

            .auth-visual {
                min-height: 155px;

                padding: 20px;
            }

            #escola-img {
                max-width: 115px;
                max-height: 115px;
            }

            .auth-visual p {
                font-size: 13px;
            }

            .auth-form {
                padding: 28px 20px 24px;
            }

            .brand {
                gap: 10px;
            }

            .brand-logo {
                width: 46px;
                height: 46px;
            }

            .brand-logo img {
                width: 46px;
                height: 46px;
            }

            .brand-text h1 {
                font-size: 19px;
            }

            .brand-text span {
                font-size: 11.5px;
            }

            .select-options {
                max-height: 200px;

                border-radius: 12px;
            }

            .select-option {
                min-height: 46px;
            }

            .page-footer {
                font-size: 11.5px;
            }
        }

        @media (max-height: 700px) and (min-width: 821px) {

            body {
                padding-top: 16px;
                padding-bottom: 16px;
            }

            .auth-card {
                min-height: 480px;
            }

            .auth-form {
                padding-top: 30px;
                padding-bottom: 30px;
            }

            .auth-visual {
                padding-top: 24px;
                padding-bottom: 24px;
            }

            #escola-img {
                max-height: 300px;
            }
        }
    


@media (prefers-reduced-motion: reduce) {
    .field-wrap,
    .icon-toggle,
    .select-arrow,
    .select-options,
    .select-option,
    .btn-entrar {
        transition: none;
    }

    .select-options {
        transform: none;
    }

    .btn-entrar:hover,
    .btn-entrar:active {
        transform: none;
    }
}
