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

/* =====================
   VARIABLES
===================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --bg-gradient: linear-gradient(135deg, #2563eb, #1e40af);
    --text: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --card-bg: #ffffff;

    --radius-card: 20px;
    --radius-input: 10px;
    --radius-btn: 12px;
    --shadow-card: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* =====================
   BASE
===================== */
body {
    font-family: "Inter", sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--text);
}

/* =====================
   AUTH LAYOUT (shared)
===================== */
.auth {
    width: 100%;
    max-width: 460px;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding-right: 42px;
    /* space for the eye */
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--text);
}

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

.auth-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

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

/* =====================
   FORM
===================== */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-input);
    border: 1px solid var(--border);
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* helper text under input */
.helper-text {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    display: block;
}

/* =====================
   BUTTONS (shared)
===================== */
.btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-btn);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.15s, transform 0.05s;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-outline img {
    width: 18px;
}

/* =====================
   DIVIDER
===================== */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    font-size: 12px;
    color: var(--muted);
}

/* =====================
   FOOTER
===================== */
.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer span {
    margin: 0 6px;
}

/* =====================
   LANGUAGE SWITCHER
===================== */
.lang-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: "Inter", sans-serif;
}

.lang-current {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.lang-dropdown {
    position: absolute;
    bottom: 48px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    min-width: 160px;
}

.lang-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
}

.lang-dropdown a:hover {
    background: #f3f4f6;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 500px) {
    .form-row {
        flex-direction: column;
    }
}