:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #e0f2fe;
    --text-main: #0f172a;
    --text-light: #64748b;
    --bg-panel: rgba(255, 255, 255, 0.85);
    --border-color: rgba(255, 255, 255, 0.5);
    
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #cffafe 50%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

/* Background Animated Shapes */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: #38bdf8;
    top: -200px;
    left: -150px;
    opacity: 0.4;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #818cf8;
    bottom: -150px;
    right: -100px;
    opacity: 0.3;
    animation-delay: -5s;
    animation-duration: 25s;
    animation-direction: alternate-reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #14b8a6;
    top: 40%;
    left: 20%;
    opacity: 0.2;
    animation-delay: -10s;
    animation-duration: 18s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(80px) scale(1.1); }
}

/* Login Card - Glassmorphism */
.login-container {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border: 2px solid var(--primary-light);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.hospital-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hospital-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
    letter-spacing: -0.025em;
}

.system-name {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Role Selector Cards */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.role-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.role-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 14px 24px -8px rgba(0, 0, 0, 0.15);
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.admin-icon {
    background: #e0f2fe;
    color: #0ea5e9;
}
.role-card:hover .admin-icon {
    background: #0ea5e9;
    color: white;
}

.doctor-icon {
    background: #ecfdf5;
    color: #10b981;
}
.role-card:hover .doctor-icon {
    background: #10b981;
    color: white;
}

.role-text {
    flex: 1;
}

.role-text h3 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.role-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.footer-text {
    text-align: center;
    margin-top: 32px;
    font-size: 0.8rem;
    color: var(--text-light);
}
