/* ===== Auth pages — shared styles ===== */

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

/* Hide body until language is applied to prevent flash */
html:not(.lang-ready) body {
    visibility: hidden;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- card ---- */
.auth-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}

/* ---- logo / header ---- */
.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-logo h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}
.auth-logo p {
    color: #7f8c8d;
    font-size: 14px;
}

/* ---- form ---- */
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}
.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}
.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #999;
}

/* ---- buttons ---- */
.btn-auth {
    width: 100%;
    padding: 13px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.btn-auth:hover { background: #2980b9; }
.btn-auth:disabled { background: #95a5a6; cursor: not-allowed; }
.btn-auth-green { background: #27ae60; }
.btn-auth-green:hover { background: #219a52; }

/* ---- footer ---- */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #7f8c8d;
}
.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* ---- messages ---- */
.error-msg {
    background: #fdedee;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
    border-left: 3px solid #e74c3c;
}
.success-msg {
    background: #eafaf1;
    color: #27ae60;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
    border-left: 3px solid #2ecc71;
}

/* ---- password strength bar ---- */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    transition: all 0.3s;
    background: #eee;
}
.password-strength .bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

/* ---- lang switcher ---- */
.lang-sw {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    gap: 4px;
}
.lang-sw button {
    background: #eee;
    color: #888;
    border: 1px solid #ddd;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .5px;
    transition: all .2s;
}
.lang-sw button:hover { background: #ddd; color: #333; }
.lang-sw button.active { background: #3498db; color: #fff; border-color: #2980b9; }

/* ---- verify result ---- */
.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
    text-align: center;
}
.result-message {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 24px;
    line-height: 1.5;
    text-align: center;
}
