/* ============================================
   DENTAL OPD — Modern Light Hospital Theme
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Home Variables (Light Theme) ── */
:root {
    --home-bg: #F0F9FF;
    --home-surface: #FFFFFF;
    --home-glass: rgba(255, 255, 255, 0.7);
    --home-glass-border: rgba(255, 255, 255, 0.4);
    --home-text: #0F172A;
    --home-text-dim: #64748B;
    --home-accent: #0F766E;
    --home-accent-light: #14B8A6;
    --home-accent-glow: rgba(15, 118, 110, 0.15);
    --home-gradient: linear-gradient(135deg, #0F766E, #14B8A6);
    --home-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --home-font-display: 'Outfit', sans-serif;
    --home-shadow-card: 0 10px 30px -10px rgba(15, 118, 110, 0.1);
    --home-shadow-hover: 0 20px 40px -12px rgba(15, 118, 110, 0.2);
}

/* ── Full-Screen Layout ── */
.home-page {
    min-height: 100vh;
    background: var(--home-bg);
    color: var(--home-text);
    font-family: var(--home-font);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ── Animated Background ── */
.home-bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(204, 251, 241, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(224, 242, 254, 0.6) 0%, transparent 40%);
    overflow: hidden;
}

/* Decor Shapes */
.home-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
    animation: shapeFloat 20s infinite alternate;
}

.home-shape-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(20, 184, 166, 0.15);
}

.home-shape-2 {
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(56, 189, 248, 0.15);
    animation-duration: 25s;
}

@keyframes shapeFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Grid Pattern */
.home-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(40% 40% at 50% 50%, rgba(15, 118, 110, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
}

/* ── Content Container ── */
.home-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
}

/* ── Navbar ── */
.home-nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.home-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.home-nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-nav-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.home-nav-name {
    font-family: var(--home-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--home-text);
    line-height: 1.2;
}

.home-nav-dept {
    font-size: 0.75rem;
    color: var(--home-text-dim);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.home-nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--home-accent);
    font-weight: 600;
    background: rgba(15, 118, 110, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

.home-nav-status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* ── Hero Section ── */
.home-hero {
    text-align: center;
    max-width: 900px;
    margin-bottom: 2rem;
}

.home-hero-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-logo-circle {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 25px 60px -12px rgba(15, 118, 110, 0.3),
        0 0 0 1px rgba(15, 118, 110, 0.1);
    padding: 0;
    position: relative;
    z-index: 1;
    animation: floatLogo 6s ease-in-out infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transform: scale(1.05);
}

.home-hero-pulse {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed var(--home-accent-light);
    opacity: 0.3;
    animation: pulseRotate 10s linear infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.home-hero-college {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--home-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(15, 118, 110, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.home-hero-title {
    font-family: var(--home-font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--home-text);
    letter-spacing: -0.02em;
}

.home-hero-subtitle {
    font-size: 1.125rem;
    color: var(--home-text-dim);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Section Label ── */
.home-section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
}

.home-section-label span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text-dim);
    background: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ── Role Cards Grid ── */
.home-roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 3rem;
}

.home-role-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: var(--home-shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-hover);
    border-color: rgba(15, 118, 110, 0.2);
}

.home-role-card.selected {
    border-color: var(--home-accent);
    background: #F0FDFA;
    box-shadow: 0 0 0 2px var(--home-accent), var(--home-shadow-hover);
    transform: translateY(-4px);
}

/* Card Icons */
.home-role-icon {
    width: 64px;
    height: 64px;
    background: #F8FAFC;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--home-text-dim);
}

.home-role-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.home-role-card:hover .home-role-icon {
    background: #E0F2FE;
    color: var(--home-accent);
    transform: scale(1.1) rotate(5deg);
}

.home-role-card.selected .home-role-icon {
    background: white;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.1);
    color: var(--home-accent);
}

.home-role-name {
    font-family: var(--home-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.5rem;
}

.home-role-desc {
    font-size: 0.85rem;
    color: var(--home-text-dim);
    line-height: 1.5;
}

.home-role-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    background: var(--home-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-role-card.selected .home-role-check {
    opacity: 1;
    transform: scale(1);
}

/* ── Sign-In Area ── */
.home-signin-area {
    width: 100%;
    max-width: 480px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
}

.home-signin-area.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    max-height: 800px;
    margin-top: 2rem;
}

.home-signin-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.home-signin-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 0.5rem;
}

.home-signin-header p {
    color: var(--home-text-dim);
    margin-bottom: 1.5rem;
}

.home-signin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #F1F5F9;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--home-text);
    margin-bottom: 2rem;
}

.home-signin-role-badge span {
    display: flex;
    align-items: center;
}

.home-signin-role-badge svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: var(--home-accent);
}

.home-input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.home-input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.home-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--home-font);
    font-size: 1rem;
    color: var(--home-text);
    transition: all 0.2s;
}

.home-input:focus {
    outline: none;
    border-color: var(--home-accent);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.home-signin-btn {
    width: 100%;
    padding: 1rem;
    background: var(--home-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

.home-signin-btn:hover {
    background: #115E59;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
}

/* ── Footer ── */
.home-footer {
    margin-top: 5rem;
    text-align: center;
    border-top: 1px solid #E2E8F0;
    width: 100%;
    padding-top: 2rem;
}

.home-footer-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.home-footer-stat-value {
    font-size: 2rem;
    font-family: var(--home-font-display);
    font-weight: 800;
    color: var(--home-accent);
}

.home-footer-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--home-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.home-footer-text {
    font-size: 0.875rem;
    color: #94A3B8;
    padding-bottom: 2rem;
}

/* ── Home Features ── */
.home-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 4rem auto 2rem;
    padding: 0 1.5rem;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.home-feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
    cursor: default;
}

.home-feature-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.2);
}

.home-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--home-accent-glow);
    color: var(--home-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.home-feature-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--home-text);
    margin-bottom: 0.5rem;
    font-family: var(--home-font-display);
}

.home-feature-desc {
    font-size: 0.85rem;
    color: var(--home-text-dim);
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 1024px) {

    .home-roles-grid,
    .home-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero-title {
        font-size: 2.25rem;
    }

    .home-roles-grid,
    .home-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-footer-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {

    .home-roles-grid,
    .home-features {
        grid-template-columns: 1fr;
    }
}