
:root {
    --primary-color: #ff8c00;
    --primary-hover: #e67e00;
    --bg-color: #f4f7f9;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #dfe6e9;
    --radius: 8px;
}

* {
	box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.login-card {
    background: var(--card-bg);
    padding: 0 40px 40px 40px;
    width: 100%;
    min-width: 35vw;
    max-width: 400px;
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

p.subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
    margin-bottom: 32px;
}

/* Form Styling */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Form refinement */
input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px; /* Increased breathing room */
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fafafa;
    transition: all 0.2s ease-in-out;
}

input:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1); /* Subtle glow */
}

button[type="submit"] {
	width: 100%;
	padding: 12px;
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: var(--primary-hover);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: background 0.2s;
}

.google-btn:hover {
    background: #f1f1f1;
}

/* Separator for SSO */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before { margin-right: .75em; }
.divider:not(:empty)::after { margin-left: .75em; }

/* Branding / Realm Name */
.realm-brand {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color); /* #ff8c00 */
    margin-bottom: 12px;
}

/* Back to Application Link */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-main);
}

.back-link svg {
    margin-right: 6px;
    transition: transform 0.2s;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Language Switcher Styling */
.language-picker {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 40px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--border-color);
}

.language-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
    transform: translateY(1px);
}

.language-link:hover {
    color: var(--primary-color);
    background: rgba(255, 140, 0, 0.05);
}

.language-link.active {
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    border-radius: 0;
}
/* Responsive Name Row */
.name-row {
    display: flex; 
    gap: 15px;
}

@media (max-width: 1024px) {
    .name-row {
        flex-direction: column;
        gap: 0;
    }
}  

/* Alert / Error Messages */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.alert-error {
    background-color: #fff5f5;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

.alert-success {
    background-color: #f0fff4;
    color: #27ae60;
    border-left: 4px solid #27ae60;
}

/* Optional: Icon spacing if you add SVGs later */
.alert svg {
    margin-right: 12px;
    flex-shrink: 0;
}
