/* ============================================
   DENTAL OPD — Futuristic Login (Split Screen)
   ============================================ */

/* ── Global Setup ── */
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    background: #0f172a;
    overflow: hidden;
    height: 100vh;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Background & Orbs ── */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 120%, #0f766e 0%, #0f172a 60%, #020617 100%);
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: #14b8a6;
    animation-duration: 25s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #0ea5e9;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* ── Split Layout Container ── */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* ── Left Side: Institution Details ── */
.login-left {
    flex: 1;
    /* Takes up avaiable space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    background: rgba(15, 23, 42, 0.4);
    /* Slight tint */
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.brand-content {
    max-width: 500px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo-large {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 1.5rem;
    box-shadow:
        0 0 50px rgba(20, 184, 166, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-large:hover {
    transform: scale(1.05) rotate(5deg);
}

.brand-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #ccfbf1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-details p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.accreditation-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    color: #34d399;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

/* ── Right Side: Login Form ── */
.login-right {
    flex: 1;
    /* Takes up available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    /* Very subtle overlay */
    backdrop-filter: blur(20px);
}

.login-form-container {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.05);
    /* Glass card inside right panel */
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-header {
    margin-bottom: 2rem;
    text-align: left;
}

.form-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #99f6e4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 18px;
    height: 18px;
    transition: color 0.3s;
    z-index: 2;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.input-field {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1rem 1rem 3rem;
    /* Left padding ensures space for icon */
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #2dd4bf;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.15);
}

.input-field:focus+.select-arrow,
.input-field:focus~.input-icon {
    color: #2dd4bf;
}

/* Select specifics */
select.input-field {
    appearance: none;
    cursor: pointer;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(20, 184, 166, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(20, 184, 166, 0.5);
}

.login-btn:active {
    transform: translateY(0);
}

/* Footer in Form */
.login-footer {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

/* Back Button Updates */
.back-home-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    /* ... rest consistent with original ... */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #2dd4bf;
    color: #2dd4bf;
    transform: translateX(-4px);
}

.back-home-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .login-left {
        flex: 0 0 auto;
        padding: 3rem 1.5rem;
        min-height: 40vh;
    }

    .brand-logo-large {
        width: 120px;
        height: 120px;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .login-right {
        flex: 1 0 auto;
        padding: 2rem 1.5rem;
    }

    .back-home-btn {
        top: 1.5rem;
        left: 1.5rem;
    }
}