﻿/* 
   SecureCare Registration - Modern Healthcare Design
   Refined, trustworthy aesthetic with smooth interactions
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    /* Color System - Medical Blue & Warm Coral */
    --primary-blue: #2563eb;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e40af;
    --accent-coral: #ff6a00;
    --accent-coral-light: #ff8533;
    --accent-coral-dark: #e65c00;
    /* Neutrals */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    /* Semantic */
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.1);
    /* Transitions */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Layout Improvements */
#intro {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%) !important;
    min-height: 100vh;
    padding: 40px 20px !important;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#pageBackgroundImage {
    opacity: 0.04 !important;
    filter: blur(1px);
}

/* Collapsed Logo (Mobile) */
#imgCollapsedLogo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
    animation: fadeInDown 0.6s ease-out;
}

/* Main Registration Container */
#divRegistration {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: fadeInUp 0.7s ease-out;
}

    /* Left Column - Brand/Auth Providers */
    #divRegistration .col-md-4 { 
        padding: 60px 40px;
        position: relative;
        overflow: hidden;
    }

        #divRegistration .col-md-4::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%); 
        }

        #divRegistration .col-md-4::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -30%;
            width: 150%;
            height: 150%;
            background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, transparent 50%);
        }

#registerLogoExternal {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

#imageLockLogo {
    max-width: 160px;
    width: 65%;
    margin: 0 auto 20px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); 
}

#imageTextLogo {
    max-width: 100%;
    margin-top: 20px;  
    opacity: 0.98;
}

#registerLogoExternal p.font-size-15pt {
    color: #333333;
    font-size: 15px !important;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

/* Provider Buttons */
.btn-provider {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px !important;
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-800) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all var(--transition) !important;
    backdrop-filter: blur(10px);
    letter-spacing: 0.3px;
    line-height: normal !important;
    height: auto !important;
}

    .btn-provider:hover {
        background: white !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .btn-provider img {
        width: 25px;
        height: 22px;
    }

.provider-column {
    width: 100%;
    margin-bottom: 12px;
}

    .provider-column:last-child {
        margin-bottom: 0;
    }

/* Right Column - Form */
#divRegistration .col-md-8 {
    padding: 60px 50px;
    background: white;
}

/* Form Structure */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}
 

/* Form Groups */
.form-group {
    margin-bottom: 24px;
    animation: fadeIn 0.5s ease-out backwards;
}

    .form-group:nth-child(1) {
        animation-delay: 0.05s;
    }

    .form-group:nth-child(2) {
        animation-delay: 0.1s;
    }

    .form-group:nth-child(3) {
        animation-delay: 0.15s;
    }

    .form-group:nth-child(4) {
        animation-delay: 0.2s;
    }

    .form-group:nth-child(5) {
        animation-delay: 0.25s;
    }

    .form-group:nth-child(6) {
        animation-delay: 0.3s;
    }

/* Labels */
.control-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
    font-family: 'Manrope', sans-serif;
}

     

/* Password Toggle */
.pw-toggle {
    position: absolute;
    right: 0;
    top: 8px; 
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    z-index: 5;
}

.aPwShowHide {
    width: 24px !important;
    height: 24px;
    opacity: 0.4;
    transition: all var(--transition);
    position: static !important;
    right: auto !important;
    top: auto !important;
}

.pw-toggle:hover .aPwShowHide {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Autocomplete State Search */
.autocomplete {
    position: relative;
    width: 100%;
    max-width: 100%;
}

    .autocomplete input.form-control {
        padding-left: 48px;
    }

    .autocomplete img {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 14px;
        width: 20px;
        height: 20px;
        opacity: 0.35;
        transition: opacity var(--transition);
        z-index: 2;
    }

    .autocomplete input:focus + img {
        opacity: 0.6;
    }

.autocomplete-items {
    position: absolute;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    z-index: 99;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow: auto;
    background: white;
    box-shadow: var(--shadow-lg);
}

    .autocomplete-items div {
        padding: 12px 16px;
        cursor: pointer;
        background-color: white;
        border-bottom: 1px solid var(--neutral-100);
        transition: all var(--transition);
        font-size: 14px;
        color: var(--neutral-700);
    }

        .autocomplete-items div:hover {
            background-color: var(--neutral-50);
        }

        .autocomplete-items div:last-child {
            border-bottom: none;
        }

.autocomplete-active {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

.autocomplete-items span {
    color: inherit !important;
}

.autocomplete-active span {
    color: white !important;
}

/* Email Verified Section */
#imgEmailVerified {
    width: 72px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 16px rgba(16, 185, 129, 0.3));
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.w-100.text-center h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    font-family: 'Manrope', sans-serif;
}

.w-100.text-center h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 28px;
}

#btnRemoveProvider {
    background: var(--neutral-50) !important;
    border: 2px solid var(--neutral-200) !important;
    color: var(--neutral-700) !important;
    margin-top: 28px;
}

    #btnRemoveProvider:hover {
        background: white !important;
        border-color: var(--error) !important;
        color: var(--error) !important;
    }

/* Password Requirements List */
#ulPwRules {
    list-style: none;
    margin: 0 0 20px 0 !important;
    padding: 16px;
    background: linear-gradient(135deg, var(--neutral-50) 0%, rgba(239, 246, 255, 0.5) 100%);
    border-radius: 10px;
    border: 1px solid var(--neutral-200);
    font-size: 13px !important;
    float: none !important;
    width: 100% !important;
}

    #ulPwRules li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
        color: var(--neutral-600);
        transition: color var(--transition);
        width: 100%;
        clear: both;
    }

        #ulPwRules li:last-child {
            margin-bottom: 0;
        }

    #ulPwRules img {
        width: 18px !important;
        height: 18px;
        flex-shrink: 0;
        float: none !important;
        margin-right: 0 !important;
    }

    #ulPwRules span {
        flex: 1;
        float: none !important;
    }

/* Checkboxes */
input[type="checkbox"].form-control {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

input[type="checkbox"].cb-25 {
    width: 20px;
    height: 20px;
}

label[data-cbtarget] {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background-color var(--transition);
    margin: 0;
    font-weight: 500;
}

    label[data-cbtarget]:hover {
        background-color: var(--neutral-50);
    }

/* Terms & Privacy Section */
.terms-link,
.privacy-link {
    color: var(--accent-coral);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
    display: inline-block;
    cursor:pointer;
}

    .terms-link::after,
    .privacy-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent-coral);
        transition: width 0.3s ease;
    }

    .terms-link:hover,
    .privacy-link:hover {
        color: var(--accent-coral-dark);
    }

        .terms-link:hover::after,
        .privacy-link:hover::after {
            width: 100%;
        }

/* Submit Button */
.btn-primary {
    padding: 16px 56px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: white !important;
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-dark) 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all var(--transition) !important;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.25), 0 0 0 1px rgba(255, 106, 0, 0.1) !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px !important;
    font-family: 'Manrope', sans-serif;
    line-height: normal !important;
}

    .btn-primary:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35), 0 0 0 1px rgba(255, 106, 0, 0.2) !important;
        background: linear-gradient(135deg, var(--accent-coral-light) 0%, var(--accent-coral) 100%) !important;
    }

    .btn-primary:active {
        transform: translateY(0) !important;
    }

/* Color Utilities */
.color-333333 {
    color: var(--neutral-700) !important;
}

.color-636161 {
    color: var(--neutral-500) !important;
}

.color-black {
    color: var(--neutral-800) !important;
}

.red-txt {
    color: var(--error) !important;
}

.green-txt {
    color: var(--success) !important;
}

/* Spacing Utilities */
.margin-top-15px {
    margin-top: 15px;
}

.margin-top-25px {
    margin-top: 25px;
}

.margin-top-30px {
    margin-top: 30px;
}

.margin-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-width-300px {
    max-width: 300px;
}

.width-100pct {
    width: 100%;
}

.text-center-important {
    text-align: center !important;
}

.text-left-important {
    text-align: left !important;
}

.text-left {
    text-align: left;
}

.display-block {
    display: block;
}

.display-inline {
    display: inline !important;
}

.width-auto {
    width: auto !important;
}

.position-relative {
    position: relative;
}

.w-100 {
    width: 100%;
}

.mr-2 {
    margin-right: 8px;
}

.mt-25 {
    margin-top: 25px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}
 

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #intro {
        padding: 20px !important;
        background: white !important;
    }

    #imgCollapsedLogo {
        display: block;
        margin-bottom: 30px;
    }

    #divRegistration {
        border-radius: 0;
        box-shadow: none;
    }

        #divRegistration .col-md-4 {
            padding: 40px 30px;
            border-radius: 0;
        }

    #imageLockLogo,
    #imageTextLogo {
        display: none;
    }

    #registerLogoExternal {
        width: 100%;
        margin: 0 auto 30px;
    }

    #divRegistration .col-md-8 {
        padding: 40px 30px;
    }
     

    .autocomplete {
        max-width: 100%;
    }

    #ulPwRules {
        font-size: 12px !important;
        padding: 14px;
    }

    .btn-primary {
        width: 100%;
        padding: 16px 32px !important;
    }

    label[data-cbtarget] {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    #intro {
        padding: 0 !important;
    }

    #divRegistration .col-md-4 {
        padding: 30px 20px;
    }

    #divRegistration .col-md-8 {
        padding: 30px 20px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles */
@media print {
    #divRegistration .col-md-4 {
        display: none;
    }

    #divRegistration .col-md-8 {
        max-width: 100%;
    }

    .btn-primary {
        display: none;
    }
}
