* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
}
.login-box {
    background: #ffffff;
    padding: 2.25rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 440px;
    text-align: center;
}
.login-logo {
    display: block;
    margin: 0 auto 1rem auto;
    width: 85px;
    height: 85px;
    object-fit: contain;
    border-radius: 50%;
    padding: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}
.login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

/* Role Selection Radio Cards */
.role-selector {
    margin-bottom: 1.25rem;
    text-align: left;
}
.role-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.role-card {
    position: relative;
    cursor: pointer;
}
.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.role-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.4rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}
.role-card-inner:hover {
    border-color: #cbd5e1;
    color: #1e293b;
}
.role-card-inner.active,
.role-card input[type="radio"]:checked + .role-card-inner {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}
label {
    display: block;
    margin-bottom: 0.4rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
}
input[type="email"], input[type="password"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="email"]:focus, input[type="password"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
button {
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
button:hover {
    background: #1d4ed8;
}
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    text-align: left;
    border: 1px solid #fecaca;
}
