@import 'signin-styles.css';

/* Register Page Redesign Styling */

/* Override layout width for larger registration form */
.register-container.split-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    align-items: stretch; /* Prevents vertical centering gaps on different column heights */
}

/* Redesign Right Column and Auth Card to fit larger form height gracefully */
.register-right {
    background-color: var(--bg-slate);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.register-form-container {
    width: 100%;
    max-width: 520px;
}

/* Split Form Sections visually using fieldsets */
.form-fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.form-fieldset-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.35rem;
    text-align: left;
}

/* Redesign Mobile Phone Input with Dropdown */
.mobile-input-container {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    text-align: left;
}

.mobile-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.mobile-input-wrapper {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.country-code-dropdown,
.mobile-number-input {
    height: 48px;
    padding: 0.875rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--navy);
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-family: var(--font);
    box-sizing: border-box;
}

.country-code-dropdown:focus,
.mobile-number-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.mobile-number-input::placeholder {
    color: #94A3B8;
}

.country-code-dropdown {
    width: 100px !important;
    flex-shrink: 0;
    padding: 0.875rem 2rem 0.875rem 1rem !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 14px !important;
    cursor: pointer;
}

.mobile-number-input {
    flex: 1;
    padding-left: 1rem !important; /* override standard input icon padding */
}

/* Password complexity dynamic validation UI card */
.password-requirements {
    margin: 0.5rem 0 1.5rem 0;
    padding: 1.25rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    text-align: left;
    transition: all 0.3s ease;
}

.password-requirements p {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
}

.password-requirements li i {
    font-size: 0.75rem;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Terms and Conditions checkbox alignment */
.terms-checkbox {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    text-align: left;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.terms-checkbox label {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
    user-select: none;
}

.terms-checkbox label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-checkbox label a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Info banner on top of form for Admins */
.admin-login-note {
    font-size: 0.85rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: #1E40AF;
    margin-bottom: 1.5rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.5;
}

.admin-login-note i {
    color: var(--primary);
    font-size: 1rem;
}

/* ====================================================
   RESPONSIVE LAYOUT OVERRIDES (REGISTER SPECIFIC)
   ==================================================== */

@media (max-width: 1023px) {
    .register-container.split-layout {
        grid-template-columns: 1fr;
    }
    
    .signin-left {
        min-height: auto;
        padding: 3rem 2.5rem;
    }
    
    .register-right {
        min-height: auto;
        padding: 3rem 2.5rem 4rem;
    }
}

@media (max-width: 767px) {
    .signin-left {
        padding: 2.5rem 1.5rem;
    }
    
    .register-right {
        padding: 2rem 1rem 3rem;
    }
    
    .register-form-container {
        max-width: 100%;
    }
    
    .mobile-input-wrapper {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .country-code-dropdown {
        width: 85px !important;
    }
}