/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0b3a57;
    --primary-2: #0f5f88;
    --primary-hover: #072a40;
    --primary-glow: rgba(11, 58, 87, 0.12);

    --accent: #f97316;
    --accent-2: #fb923c;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.18);
    --text-main: #111418;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --border: #dbe0e6;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: radial-gradient(1200px circle at 15% -10%, var(--primary-glow), transparent 60%),
        radial-gradient(900px circle at 110% 10%, var(--accent-glow), transparent 55%),
        var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: 72px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-glow), var(--accent-glow));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

/* Login Container */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-alt);
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 520px;
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.input-container {
    position: relative;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    padding-right: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
}

/* Role Specific Fieldset */
.role-specific {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.role-specific legend {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 0 8px;
    background: #fff;
    border-radius: 4px;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 22px rgba(11, 58, 87, 0.22);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11, 58, 87, 0.28);
}

.btn-secondary {
    padding: 8px 16px;
    background: rgba(249, 115, 22, 0.14);
    color: var(--accent-hover);
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-nav p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}