/* ===== AUTH PAGES (login / register) — nettruyenwork theme ===== */
.auth-page-wrap {
    padding: 30px 0 50px;
    min-height: calc(100vh - 120px);
    background: #f5f5f5;
}

.auth-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 10px;
}

/* Header strip */
.auth-card-header {
    background: #da0000;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-logo { height: 32px; width: auto; }
.auth-brand { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

/* Tabs */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e8e8e8;
    background: #fafafa;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}
.auth-tab:hover { color: #da0000; text-decoration: none; }
.auth-tab.active { color: #da0000; border-bottom-color: #da0000; }

/* Body */
.auth-card-body { padding: 24px 28px 28px; }

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 2px;
    text-transform: uppercase;
    border-bottom: 2px solid #da0000;
    padding-bottom: 8px;
    display: inline-block;
}
.auth-subtitle { font-size: 13px; color: #999; margin: 6px 0 16px; }

/* Security notice */
.auth-notice {
    background: #e8f4fd;
    border: 1px solid #bee3f8;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 12px;
    color: #2b6cb0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Alerts */
.auth-alert {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 14px;
}
.auth-alert > div { margin-bottom: 3px; }
.auth-alert > div:last-child { margin-bottom: 0; }
.auth-alert-danger { background: #fff5f5; border: 1px solid #fcd5d5; color: #c53030; }
.auth-alert-success { background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; }

/* Form fields */
.auth-group { margin-bottom: 14px; }
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.auth-input-wrap { position: relative; }
.auth-input {
    height: 40px;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #333 !important;
    padding: 0 12px !important;
    width: 100%;
    box-sizing: border-box;
    background: #fff !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input-wrap .auth-input { padding-right: 36px !important; }
.auth-input:focus {
    border-color: #da0000 !important;
    box-shadow: 0 0 0 3px rgba(218,0,0,0.1) !important;
    outline: none !important;
}
.auth-input.has-error { border-color: #e53e3e !important; }
.auth-input::placeholder { color: #aaa; }

/* Eye toggle */
.auth-eye-btn {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 36px;
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.15s;
}
.auth-eye-btn:hover { color: #da0000; }

/* Links row */
.auth-links {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
}
.auth-link { color: #da0000; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* Submit button */
.auth-btn-submit {
    display: block;
    width: 100%;
    background: #f0a500;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}
.auth-btn-submit:hover { background: #d4900a; }

/* Google button */
.auth-btn-google {
    display: block;
    width: 100%;
    background: #da0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}
.auth-btn-google:hover { background: #b50000; color: #fff; text-decoration: none; }

/* Password strength bar */
.strength-bars { display: flex; gap: 4px; margin-top: 6px; }
.strength-bar { flex: 1; height: 4px; border-radius: 2px; background: #e0e0e0; transition: background 0.2s; }
.strength-text { font-size: 11px; color: #999; margin-top: 4px; }

/* Error message under field */
.field-error { font-size: 12px; color: #c53030; margin-top: 4px; }

@media (max-width: 480px) {
    .auth-card-body { padding: 18px 16px 22px; }
}
