/* ==========================================================================
   css/register.css — CyberKonnect Register Page ONLY
   ========================================================================== */

/* -------- Variables -------- */
:root {
    --ck-primary: #2563eb;
    --ck-primary-dark: #1d4ed8;
    --ck-primary-light: #60a5fa;
    --ck-border: #e9ecef;
    --ck-muted: #6c757d;
    --ck-radius: 10px;
    --ck-radius-lg: 16px;
}

/* -------- Google Fonts applies via <link> in HTML; body font -------- */
body.bg-light {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa !important;
    color: #1f2937;
}

/* ==========================================================================
   LEFT VISUAL PANEL
   ========================================================================== */
.bg-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 60%, #1d4ed8 100%) !important;
}

.bg-primary .navbar-brand img {
    filter: brightness(0) invert(1);
    max-width: 100%;
    height: auto;
}

/* Decorative glow */
.col-lg-5.bg-primary::before,
.col-lg-5.bg-primary::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.col-lg-5.bg-primary::before {
    top: -120px; right: -120px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}
.col-lg-5.bg-primary::after {
    bottom: -100px; left: -100px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(96,165,250,0.25), transparent 70%);
}

/* ==========================================================================
   RIGHT FORM HEADING
   ========================================================================== */
h2.fw-bold.text-dark {
    color: var(--ck-primary) !important;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   ROLE SELECTOR CARDS
   ========================================================================== */
.btn-check + .btn {
    background: #fff;
    border: 2px solid var(--ck-border);
    border-radius: var(--ck-radius-lg) !important;
    color: #374151;
    transition: all 0.25s ease;
    height: auto;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 14px !important;
}

.btn-check + .btn i {
    color: var(--ck-primary);
    transition: color 0.25s ease;
}

.btn-check + .btn small {
    color: var(--ck-muted) !important;
    font-size: 0.78rem;
    line-height: 1.3;
}

.btn-check + .btn:hover {
    border-color: var(--ck-primary-light);
    background: #f8fbff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.08);
}

.btn-check:checked + .btn {
    border-color: var(--ck-primary);
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    color: var(--ck-primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

.btn-check:focus-visible + .btn {
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.25);
    outline: none;
}

/* ==========================================================================
   FORM CONTROLS
   ========================================================================== */
.form-label {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-control {
    height: 50px;
    border-radius: var(--ck-radius);
    border: 2px solid var(--ck-border);
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--ck-primary);
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.25);
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Input-group seamless look */
.input-group .input-group-text {
    border: 2px solid var(--ck-border);
    border-right: none;
    border-radius: var(--ck-radius) 0 0 var(--ck-radius);
    background: #fff;
    color: #9ca3af;
    padding-left: 14px;
    padding-right: 10px;
}

.input-group .form-control {
    border-radius: 0 var(--ck-radius) var(--ck-radius) 0;
}

.input-group .form-control.border-start-0 {
    border-left: none;
}

/* Password with toggle */
.input-group .form-control.border-end-0 {
    border-radius: 0;
}

.input-group #togglePassword {
    border: 2px solid var(--ck-border);
    border-left: none;
    border-radius: 0 var(--ck-radius) var(--ck-radius) 0;
    background: #fff;
    color: var(--ck-muted);
    height: 50px;
    width: 50px;
    transition: all 0.25s ease;
}

.input-group #togglePassword:hover {
    background: #f8f9fa;
    color: var(--ck-primary);
}

.input-group #togglePassword:focus {
    box-shadow: none;
    border-color: var(--ck-primary);
}

#togglePassword i { font-size: 1.1rem; }

/* ==========================================================================
   CHECKBOX
   ========================================================================== */
.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--ck-primary);
    border-color: var(--ck-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(37,99,235,0.25);
    border-color: var(--ck-primary);
}

.form-check-label {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--ck-muted);
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--ck-primary), var(--ck-primary-light));
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--ck-radius);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,99,235,0.4);
    background: linear-gradient(135deg, var(--ck-primary-dark), #3b82f6);
    color: #fff;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(37,99,235,0.35);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

/* ==========================================================================
   DIVIDER
   ========================================================================== */
hr.text-muted {
    opacity: 0.25;
    border-top-width: 1px;
    margin: 0;
}

/* ==========================================================================
   GOOGLE SIGN-IN (responsive)
   ========================================================================== */
#g_id_signin,
.g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

@media (max-width: 480px) {
    #g_id_signin, .g_id_signin {
        transform: scale(0.88);
        transform-origin: center top;
        max-width: 100%;
    }
}
@media (max-width: 360px) {
    #g_id_signin, .g_id_signin { transform: scale(0.78); }
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
#alertBox { margin-bottom: 1rem; }

.alert {
    border-radius: var(--ck-radius);
    padding: 12px 15px;
    font-size: 0.9rem;
    border: none;
    animation: ckSlideDown 0.3s ease;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger  { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info    { background: #dbeafe; color: #1e40af; }

.alert .btn-close { font-size: 0.7rem; padding: 1rem; }

/* ==========================================================================
   LINKS / FOOTER TEXT
   ========================================================================== */
a.text-primary {
    color: var(--ck-primary) !important;
    transition: color 0.2s ease;
}
a.text-primary:hover { color: var(--ck-primary-dark) !important; }

.text-center.mt-4.text-muted {
    color: var(--ck-muted) !important;
    font-size: 0.9rem;
}

/* ==========================================================================
   MOBILE / RESPONSIVE
   ========================================================================== */
@supports (min-height: 100dvh) {
    .min-vh-100 { min-height: 100dvh !important; }
}

/* Tablets (form side only) */
@media (max-width: 991.98px) {
    .col-lg-7 { padding: 1.5rem 1rem !important; }
}

/* Phones */
@media (max-width: 576px) {
    .form-control,
    .input-group-text,
    #togglePassword {
        font-size: 16px;      /* prevents iOS zoom-on-focus */
        height: 48px;
    }
    #togglePassword { width: 48px; }

    h2.fw-bold.text-dark { font-size: 1.55rem; }

    .btn-check + .btn {
        min-height: 84px;
        padding: 10px !important;
    }
    .btn-check + .btn i { font-size: 1.4rem !important; }
    .btn-check + .btn span.fw-bold { font-size: 0.95rem; }
    .btn-check + .btn small { font-size: 0.7rem; }

    .btn-primary.py-3 {
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
        font-size: 1rem;
    }

    .g_id_signin, #g_id_signin { max-width: 100% !important; }
}

/* Very small phones */
@media (max-width: 380px) {
    .col-lg-7 { padding: 1rem 0.75rem !important; }

    .btn-check + .btn {
        min-height: 78px;
        padding: 8px !important;
    }
    .btn-check + .btn small { font-size: 0.65rem; }
    .btn-check + .btn i { font-size: 1.2rem !important; }

    /* Stack role cards vertically for readability */
    .row.g-3 > .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes ckSlideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}