@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --navy-950: #081828;
    --navy-900: #102a43;
    --blue-600: #3763eb;
    --blue-500: #4f7cff;
    --blue-100: #edf2ff;
    --text-900: #081828;
    --text-700: #5d6d7e;
    --text-500: #8f99aa;
    --line: rgba(8, 24, 40, 0.08);
    --surface: rgba(255, 255, 255, 0.97);
    --danger-100: #ffefec;
    --danger-600: #d94f45;
    --shadow-xl: 0 28px 70px rgba(8, 24, 40, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Public Sans', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(55, 99, 235, 0.16), transparent 24%),
        radial-gradient(circle at bottom right, rgba(79, 124, 255, 0.14), transparent 22%),
        linear-gradient(135deg, #081828 0%, #12355a 50%, #3763eb 100%);
}

.login-shell {
    width: 100%;
    max-width: 430px;
}

.login-card {
    width: 100%;
    padding: 34px 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-xl);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-600);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-900);
}

.login-header p {
    margin-top: 8px;
    color: var(--text-700);
    line-height: 1.6;
}

.role-select {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 22px;
}

.role-btn {
    padding: 13px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--text-700);
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-btn:hover {
    border-color: rgba(55, 99, 235, 0.2);
    color: var(--blue-600);
    background: #f8faff;
}

.role-btn.active {
    border-color: rgba(55, 99, 235, 0.24);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff;
    box-shadow: 0 14px 26px rgba(55, 99, 235, 0.2);
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-700);
    font-size: 0.88rem;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-500);
    font-size: 1rem;
}

.input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--text-900);
    font-size: 0.96rem;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrap input:focus {
    border-color: rgba(55, 99, 235, 0.34);
    box-shadow: 0 0 0 4px rgba(55, 99, 235, 0.1);
}

.error-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--danger-100);
    color: var(--danger-600);
    font-size: 0.9rem;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    height: 54px;
    margin-top: 6px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(55, 99, 235, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(55, 99, 235, 0.28);
}

@media (max-width: 575.98px) {
    body {
        padding: 16px;
    }

    .login-card {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .role-select {
        grid-template-columns: 1fr;
    }
}
