﻿
        :root {
    --blue: #1B529B;
    --blue-dark: #16477F;
    --muted: #6E829D;
    --border: #D9E2EF;
    --light-blue: #E5EEFC;
    --page-bg: #F1F3F6;
}

        * {
            box-sizing: border-box;
        }

        html, body {
            width: 100%;
            height: 100%;
            margin: 0;
            overflow: hidden;
        }

        body {
            font-family: "Segoe UI", Arial, sans-serif;
            color: var(--blue-dark);
            background: radial-gradient(
                ellipse at center,
                #ffffff 0%,
                #f7fafc 55%,
                #edf3f7 100%
            );
        }

        button, input {
            font: inherit;
        }

        .page {
            position: relative;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
        }

        /* Logo: controlled size and position */
        .brand {
            position: absolute;
            top: 3%;
            left: 7.5%;
            height: 55px;
            display: flex;
            align-items: center;
            z-index: 2;
        }

        .brand-logo {
            display: block;
            width: 245px;
            height: 55px;
            max-width: 30vw;
            object-fit: contain;
            object-position: left center;

            /* Converts a white logo to Abbey Dental blue */
            filter: brightness(0) saturate(100%)
                    invert(22%) sepia(47%) saturate(1747%)
                    hue-rotate(188deg) brightness(88%) contrast(96%);
        }

        /* Main card */
        .login-card {
            position: absolute;
            top: 15%;
            left: 50%;
            transform: translateX(-50%);

            width: min(68.1vw, 1200px);
            height: 72%;
            display: grid;
            grid-template-columns: 43.65% 56.35%;

            overflow: hidden;
            border: 1px solid #d9e5f0;
            border-radius: 13px;
            background: rgba(255, 255, 255, .88);
            box-shadow: 0 12px 42px rgba(41, 78, 113, .09);
        }

        /* Welcome panel */
        .welcome-panel {
            position: relative;
            min-width: 0;
            overflow: hidden;
            padding: 12.2% 13.8%;
            background: linear-gradient(145deg, #f4f9fd, #f2f8fc);
        }

        .welcome-label {
            margin: 0 0 3px;
            color: var(--orange);
            font-size: clamp(12px, 1.2vw, 18px);
            line-height: 1.4;
            font-weight: 700;
        }

        .welcome-title {
            margin: 0;
            color: var(--blue);
            font-size: clamp(25px, 2.65vw, 40px);
            line-height: 1.2;
            font-weight: 750;
            letter-spacing: -1px;
            white-space: nowrap;
        }

        .welcome-description {
            max-width: 340px;
            margin: 10px 0 0;
            color: var(--muted);
            font-size: clamp(13px, 1.32vw, 20px);
            line-height: 1.4;
        }

        .tooth-art {
    position: absolute;
    top: 32%;
    left: 10%;
    width: 82%;
    max-width: 350px;
    height: auto;
    pointer-events: none;
}

        /* Right panel */
        .form-panel {
            min-width: 0;
            min-height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 2.9% 10.3% 3%;
            display: flex;
            flex-direction: column;
            scrollbar-width: none;
        }

        .form-panel::-webkit-scrollbar {
            display: none;
        }

        .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #D9E2EF;
}

.tab {
    position: relative;
    padding: 12px 8px;
    border: none;
    background: transparent;
    color: #6E829D;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.tab.active {
    color: #1B529B;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1B529B;
    border-radius: 3px 3px 0 0;
}

        .form-content {
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .form-title {
            margin: 0;
            color: var(--blue-dark);
            font-size: clamp(21px, 1.7vw, 27px);
            line-height: 1.3;
            font-weight: 750;
        }

        .form-subtitle {
            margin: 5px 0 0;
            color: var(--muted);
            font-size: clamp(12px, 1.03vw, 16px);
            line-height: 1.4;
        }

        .login-fields {
            display: grid;
            gap: clamp(10px, 1.8vh, 19px);
            margin-top: 6%;
        }

        .input-wrap {
            height: clamp(44px, 5.55vh, 57px);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 0 15px;

            border: 1.5px solid var(--border);
            border-radius: 8px;
            background: rgba(255, 255, 255, .7);
            box-shadow: inset 0 0 0 1px rgba(226, 235, 244, .2);
            transition: border-color .2s, box-shadow .2s;
        }

        .input-wrap:focus-within {
              border-color: #7EA4D5;
    box-shadow: 0 0 0 3px rgba(27, 82, 155, 0.08);
        }

        .field-icon {
            width: 24px;
            height: 24px;
            flex: 0 0 24px;
            color: #6d89aa;
        }

        .input-wrap input {
            width: 100%;
            min-width: 0;
            height: 100%;
            padding: 0;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--blue-dark);
            font-size: clamp(13px, 1.03vw, 16px);
        }

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

        .eye-button {
            flex: 0 0 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border: 0;
            background: transparent;
            color: #6d89aa;
            cursor: pointer;
        }

        .eye-button svg {
            width: 23px;
            height: 23px;
        }

        .primary-button {
            width: 100%;
            height: clamp(45px, 5.1vh, 52px);
            flex-shrink: 0;
            margin-top: 4%;

            border: 0;
            border-radius: 8px;
            color: #fff;
            font-size: clamp(14px, 1.12vw, 17px);
            font-weight: 700;
            cursor: pointer;
            transition: filter .2s, transform .2s;
        }

        .primary-button:hover {
            filter: brightness(1.06);
        }

        .primary-button:active {
            transform: scale(.995);
        }

        .login-button {
            background: linear-gradient(100deg, #1553a2, #14509c);
        }

        .signup-button {
            background: #1B529B;
        }

        .message {
    display: block;
    margin-top: 6px;
    color: #c43d2b;
    font-size: 12px;
    line-height: 1.4;
}

input.input-validation-error {
    border-color: #c43d2b;
}

        /* Sign up link below login */
        .signup-prompt {
            margin: 25px 0 0;
            text-align: center;
            color: var(--muted);
            font-size: clamp(12px, 1vw, 15px);
            line-height: 1.6;
        }

        .text-link {
            display: inline;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--blue);
            font-weight: 700;
            cursor: pointer;
            text-decoration: none;
        }

        .text-link:hover {
            text-decoration: underline;
        }

        .signup-fields {
            display: grid;
            gap: 17px;
            margin-top: 7%;
        }

        .message {
            margin-top: 10px;
            color: #c43d2b;
            font-size: 12px;
            line-height: 1.4;
        }

        .hidden {
            display: none !important;
        }

        /* Footer */
        .footer {
            position: absolute;
            bottom: 5%;
            left: 0;
            width: 100%;
            text-align: center;
            color: var(--muted);
            font-size: clamp(10px, .82vw, 13px);
        }

        /* Laptop and tablet */
        @media (max-width: 1100px) {
            .brand {
                left: 5%;
                top: 2%;
            }

            .brand-logo {
                width: 210px;
                height: 48px;
            }

            .login-card {
                width: 86%;
                height: 77%;
                top: 13%;
            }

            .welcome-panel {
                padding: 13% 9%;
                  background: linear-gradient(145deg, #F4F8FD, #EAF1FA);
            }

            .welcome-title {
                white-space: normal;
            }

            .form-panel {
                padding: 3% 7%;
            }

            /*.tooth-art {
                top: 38%;
                width: 88%;
                left: 5%;
            }*/

            .footer {
                bottom: 2%;
            }
        }

        /* Mobile */
        @media (max-width: 600px) {
            .brand {
                top: 1.5%;
                left: 5%;
                height: 40px;
            }

            .brand-logo {
                width: 165px;
                height: 40px;
                max-width: 45vw;
            }

            .login-card {
                top: 9%;
                width: 92%;
                height: 86%;
                grid-template-columns: 1fr;
                grid-template-rows: 23% 77%;
                border-radius: 10px;
            }

            .welcome-panel {
                padding: 4% 7%;
            }

            .welcome-label {
                font-size: 12px;
            }

            .welcome-title {
                font-size: clamp(21px, 6vw, 28px);
                letter-spacing: -.5px;
            }

            .welcome-description {
                max-width: 72%;
                margin-top: 3px;
                font-size: 12px;
            }

            /*.tooth-art {
                top: 4%;
                left: auto;
                right: 2%;
                width: 25%;
                max-width: 100px;
            }*/

            .form-panel {
                padding: 3% 7% 5%;
            }

            .tabs {
                margin-bottom: 5%;
            }

            .tab {
                height: 35px;
                padding-bottom: 8px;
            }

            .form-title {
                font-size: 21px;
            }

            .form-subtitle {
                font-size: 12px;
            }

            .login-fields {
                margin-top: 6%;
                gap: 12px;
            }

            .input-wrap {
                height: 44px;
            }

            .primary-button {
                height: 44px;
                margin-top: 4%;
            }

            .signup-prompt {
                margin-top: 20px;
            }

            .signup-fields {
                gap: 12px;
                margin-top: 7%;
            }

            .footer {
                bottom: .5%;
                font-size: 10px;
            }
        }

        /* Short desktop/laptop displays */
        @media (max-height: 760px) and (min-width: 601px) {
            .brand {
                top: 1.5%;
                height: 45px;
            }

            .brand-logo {
                height: 45px;
            }

            .login-card {
                top: 11%;
                height: 82%;
            }

            .welcome-panel {
                padding-top: 8%;
            }

            /*.tooth-art {
                top: 34%;
                width: 73%;
            }*/

            .form-panel {
                padding-top: 1.5%;
                padding-bottom: 1.5%;
            }

            .tabs {
                margin-bottom: 2.5%;
            }

            .login-fields {
                margin-top: 3%;
                gap: 10px;
            }

            .signup-prompt {
                margin-top: 16px;
            }

            .signup-fields {
                gap: 10px;
                margin-top: 4%;
            }

            .footer {
                bottom: 1%;
            }
        }
