/* ── RoyalBilit Auth System Styles ─────────────────────────────── */

.rb-auth-box {
    max-width: 420px;
    margin: 0 auto;
    font-family: inherit;
}

/* Panels */
.rb-panel { display: none; }
.rb-panel-active { display: block; }

/* Titles */
.rb-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.rb-panel-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Form groups */
.rb-form-group {
    margin-bottom: 16px;
}
.rb-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}
.rb-form-group input[type="text"],
.rb-form-group input[type="email"],
.rb-form-group input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #333;
}
.rb-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.12);
}

/* Password toggle */
.rb-pass-wrap {
    position: relative;
}
.rb-toggle-pass {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

/* Password strength bar */
.rb-strength-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.rb-strength-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

/* Remember row */
.rb-remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #444;
}
.rb-remember-row label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Buttons */
.rb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
    text-decoration: none;
}
.rb-btn:hover { transform: translateY(-1px); }
.rb-btn:active { transform: translateY(0); }
.rb-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.rb-btn-primary  { width: 100%; background: #0073aa; color: #fff; }
.rb-btn-primary:hover  { background: #005f8e; }

.rb-btn-success  { width: 100%; background: #27ae60; color: #fff; }
.rb-btn-success:hover  { background: #1e8449; }

.rb-btn-danger   { background: #e74c3c; color: #fff; }
.rb-btn-danger:hover   { background: #c0392b; }

.rb-btn svg {
    width: 16px;
    height: 16px;
}

/* Logout button */
.rb-logout-btn {
    padding: 9px 18px;
    font-size: 14px;
}

/* Links row */
.rb-links-row {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 13px;
}
.rb-links-row a {
    color: #0073aa;
    cursor: pointer;
    text-decoration: none;
}
.rb-links-row a:hover { text-decoration: underline; }

/* Back link */
.rb-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #0073aa;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 16px;
}
.rb-back-link:hover { text-decoration: underline; }

/* Messages */
.rb-msg {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.rb-msg.rb-error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
    display: block;
}
.rb-msg.rb-success {
    background: #eafaf1;
    color: #1e8449;
    border: 1px solid #b7e4c7;
    display: block;
}

/* Already logged in */
.rb-already-logged-in {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}
.rb-already-logged-in p {
    margin-bottom: 16px;
    color: #444;
}

/* Google button */
.rb-btn-google {
    width: 100%;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    justify-content: center;
}
.rb-btn-google:hover {
    background: #f8f9fa;
    border-color: #c6c9ce;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* Or divider */
.rb-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #aaa;
    font-size: 13px;
}
.rb-divider::before,
.rb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Google error message */
.rb-google-error {
    padding: 10px 14px;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.rb-invalid-link {
    text-align: center;
    padding: 30px 20px;
}
.rb-invalid-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.rb-invalid-link strong {
    display: block;
    font-size: 16px;
    color: #c0392b;
    margin-bottom: 8px;
}
.rb-invalid-link p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}
.rb-invalid-link a {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
}
.rb-invalid-link a:hover { text-decoration: underline; }
