/**
 * Bookroz Project 2026-27
 * Purpose: Unique UI/UX for Registration Form
 * Style: Mobile-First, Native-App Experience
 * File Path: File_manager/public_html/assets/css/register.css
 */

:root {
    --br-primary-blue: #007AFF; /* iOS style blue */
    --br-error-red: #FF3B30;   /* Warning red */
    --br-success-green: #34C759;
    --br-bg-dark: #0A0A0B;
    --br-card-bg: rgba(255, 255, 255, 0.05);
    --br-border: rgba(255, 255, 255, 0.1);
    --br-text: #FFFFFF;
}

/* Base Body - Mobile Optimized */
body.br-mobile-native {
    background-color: var(--br-bg-dark);
    color: var(--br-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.br-reg-container {
    width: 100%;
    max-width: 450px;
    padding: 25px;
    background: var(--br-card-bg);
    backdrop-filter: blur(15px); /* Glass effect */
    border-radius: 30px;
    border: 1px solid var(--br-border);
    margin: 15px;
}

/* Header Logic: Amne-Samne */
.br-flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#br_brand_logo {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, #007AFF, #5AC8FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.br-btn-link {
    color: var(--br-primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Input Styling */
.br-input-group {
    margin-bottom: 18px;
    position: relative;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    transition: 0.3s all ease;
    box-sizing: border-box;
}

input:focus {
    border-color: var(--br-primary-blue);
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

/* Mobile Number Prefix */
.br-mobile-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.br-prefix {
    padding-left: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

/* Password Strength Meter */
.br-meter-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

#br_strength_bar {
    height: 100%;
    width: 0%;
    transition: 0.5s width ease;
}

.weak { background-color: var(--br-error-red); width: 33%; }
.medium { background-color: #FFCC00; width: 66%; }
.strong { background-color: var(--br-success-green); width: 100%; }

/* Hero Button Logic: Red (Disabled) to Blue (Active) */
.br-hero-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s all cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-disabled {
    background-color: var(--br-error-red);
    opacity: 0.6;
    cursor: not-allowed;
    transform: scale(0.98);
}

.btn-active {
    background-color: var(--br-primary-blue);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
    color: white;
}

.br-hero-btn:active:not(.btn-disabled) {
    transform: scale(0.95);
}

/* Error Messages */
.br-error-msg {
    color: var(--br-error-red);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Spinner Logic */
.br-hidden-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}