/* ============================
   TNBH Auth Styles
   ============================ */

.tnbh-auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
    .tnbh-auth-wrapper {
        grid-template-columns: 1fr;
    }
    .tnbh-auth-left {
        display: none;
    }
}

/* Left panel */
.tnbh-auth-left {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 60px 40px;
    display: flex;
    align-items: center;
}
.tnbh-auth-branding h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}
.tnbh-auth-tagline {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
    line-height: 1.5;
}
.tnbh-auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tnbh-auth-features li {
    padding: 8px 0;
    font-size: 15px;
    opacity: 0.9;
}
.tnbh-testimonial {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border-left: 3px solid #ff6b35;
}
.tnbh-testimonial blockquote {
    margin: 0;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.95;
}
.tnbh-testimonial cite {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.7;
}

/* Right panel - Form */
.tnbh-auth-right {
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 768px) {
    .tnbh-auth-right {
        padding: 30px 20px;
    }
}
.tnbh-auth-form-card {
    width: 100%;
    max-width: 400px;
}
.tnbh-auth-form-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.tnbh-auth-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

/* Form elements */
.tnbh-auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tnbh-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tnbh-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.tnbh-form-group label .required {
    color: #dc2626;
}
.tnbh-form-group label .optional {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}
.tnbh-form-group input[type="text"],
.tnbh-form-group input[type="email"],
.tnbh-form-group input[type="password"],
.tnbh-form-group input[type="tel"] {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.tnbh-form-group input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.tnbh-form-group input.error {
    border-color: #dc2626;
}
.tnbh-form-group input.success {
    border-color: #16a34a;
}

/* Password input with toggle */
.tnbh-input-password {
    position: relative;
    display: flex;
    align-items: center;
}
.tnbh-input-password input {
    padding-right: 44px;
}
.tnbh-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
}
.tnbh-toggle-password:hover {
    opacity: 1;
}

/* Password strength */
.tnbh-password-strength {
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    overflow: hidden;
    margin-top: 4px;
}
.tnbh-password-strength .strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.tnbh-password-strength .strength-bar.weak { width: 25%; background: #dc2626; }
.tnbh-password-strength .strength-bar.fair { width: 50%; background: #f59e0b; }
.tnbh-password-strength .strength-bar.good { width: 75%; background: #2563eb; }
.tnbh-password-strength .strength-bar.strong { width: 100%; background: #16a34a; }

.tnbh-password-strength-text {
    font-size: 12px;
    margin-top: 2px;
}
.tnbh-password-strength-text.weak { color: #dc2626; }
.tnbh-password-strength-text.fair { color: #f59e0b; }
.tnbh-password-strength-text.good { color: #2563eb; }
.tnbh-password-strength-text.strong { color: #16a34a; }

/* Password match */
.tnbh-password-match {
    font-size: 12px;
    min-height: 16px;
}
.tnbh-password-match.match { color: #16a34a; }
.tnbh-password-match.no-match { color: #dc2626; }

/* Hint text */
.tnbh-hint {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* Checkbox */
.tnbh-checkbox-group {
    margin-top: 4px;
}
.tnbh-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}
.tnbh-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
}
.tnbh-checkbox-label a {
    color: #ff6b35;
    text-decoration: underline;
}

/* Form row (login remember + forgot) */
.tnbh-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tnbh-forgot-link {
    font-size: 14px;
    color: #ff6b35;
    text-decoration: none;
}
.tnbh-forgot-link:hover {
    text-decoration: underline;
}

/* Submit button */
.tnbh-auth-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}
.tnbh-auth-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}
.tnbh-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.tnbh-auth-submit.loading {
    position: relative;
    color: transparent;
}
.tnbh-auth-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tnbh-spin 0.8s linear infinite;
}
@keyframes tnbh-spin {
    to { transform: rotate(360deg); }
}

/* Auth message */
.tnbh-auth-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}
.tnbh-auth-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.tnbh-auth-message.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* Footer */
.tnbh-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.tnbh-auth-footer p {
    font-size: 14px;
    color: #888;
}
.tnbh-auth-footer a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}
.tnbh-auth-footer a:hover {
    text-decoration: underline;
}
