/*
 * Caribbean Connector — Join Network Gate Page
 * Styles for: /join-network/gate  (login / register / Google SSO)
 * Source view: resources/views/join-network-login.blade.php
 */

/* ── Design Tokens ── */
:root {
    --accent:       #03645b;
    --accent-dark:  #03645b;
    --accent2:      #ff6b6b;
    --glass-bg:     rgba(6, 10, 24, 0.82);
    --glass-border: #03645b;
    --text-main:    #f0f4ff;
    --text-muted:   #8fa3c4;
    --input-bg:     rgba(255, 255, 255, 0.05);
    --input-border: #dedede;
    --input-focus:  #03645b;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
    background: #07060f;
    color: var(--text-main);
    overflow-x: hidden;
}

/* ── Animated Background ── */
.bg-canvas {
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(212,6,58,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(90,10,40,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(5,5,20,1) 0%, transparent 100%);
}
.bg-dots {
    position: fixed; inset: 0; z-index: 0;
    background-image: radial-gradient(rgba(212,6,58,0.10) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ── Page Wrap ── */
.page-wrap {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem 1rem;
}

/* ── Auth Card ── */
.auth-card {
    width: 100%; max-width: 460px;
    
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.6rem 2.2rem 2.2rem;
   
   
    box-shadow:
        0 0 0 1px rgb(3 100 91 / 0%), 0 8px 48px rgb(0 0 0 / 0%), 0 0 90px rgb(212 6 58 / 0%);
    animation: cardIn 0.65s cubic-bezier(.22,.9,.42,1) both;
}
@keyframes cardIn {
    from { opacity:0; transform: translateY(30px) scale(0.97); }
    to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── Brand ── */
.brand { text-align:center;margin-bottom: 1.8rem; }
.brand img { height: 38px; }
.brand-name {
    font-weight: 800; font-size: 1rem;
    letter-spacing: -0.01em;text-align:center;
}

/* ── Google Button ── */
.btn-google {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border: none; border-radius: 14px;
    color: #3c4043;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: 1rem;
    cursor: pointer; text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
    margin-bottom: 1.6rem;
}
.btn-google:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.12);
    transform: translateY(-2px); color: #1a1a1a;
}
.btn-google:active { transform: translateY(0); }
.btn-google svg { flex-shrink: 0; }

/* ── Or Divider ── */
.or-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 0.8rem;
    margin-bottom: 1.6rem;
}
.or-divider::before, .or-divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--glass-border);
}

/* ── Tab Switcher ── */
.tab-bar {
    display: flex;
    border: 1px solid var(--glass-border);
    border-radius: 14px; overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.03);
}
.tab-btn {
    flex: 1; border: none; background: transparent;
    color: var(--text-muted);
    padding: 0.65rem 1rem;
    font-family: 'Syne', sans-serif;
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer; transition: all 0.22s;
}
.tab-btn.active {
    background: var(--accent); color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgb(163 163 163 / 35%);
}

/* ── Form Elements ── */
.form-label {
    font-size: 0.79rem; font-weight: 500;
    color: var(--text-muted); margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
}
.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 12px !important;
    color: #000 !important;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem; padding: 0.55rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: rgba(143,163,196,0.4); }
.form-control:focus {
    box-shadow: 0 0 0 3px rgb(191 183 185 / 20%) !important;
    border-color: var(--input-focus) !important;
    outline: none;
}
.form-control.is-invalid { border-color: rgba(248,113,113,0.65) !important; }
.invalid-feedback { color: #f87171; font-size: 0.76rem; margin-top: 0.28rem; }

/* ── Password Toggle ── */
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 2.8rem; }
.pw-toggle {
    position: absolute; right: 0.9rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted); font-size: 1rem;
    cursor: pointer; padding: 0; line-height: 1;
    transition: color 0.18s;
}
.pw-toggle:hover { color: #fff; }

/* ── Submit Button ── */
.btn-cc-submit {
    width: 100%; padding: 0.7rem 1.5rem;
    background:  var(--accent);
    border: none; border-radius: 14px; color: #fff;
    font-family: 'Syne', sans-serif; font-weight: 700;
    font-size: 0.95rem; letter-spacing: 0.02em;
    cursor: pointer; transition: all 0.22s;
    box-shadow: 0 4px 20px rgb(197 197 197 / 40%);
    margin-top: 0.5rem;
}
.btn-cc-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212,6,58,0.55);
}
.btn-cc-submit:active { transform: translateY(0); }

/* ── Alert Boxes ── */
.alert-cc-err {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.35);
    border-radius: 12px; color: #f87171;
    font-size: 0.84rem; padding: 0.7rem 1rem;
    margin-bottom: 1rem;
}
.alert-cc-ok {
    background: rgba(52,211,153,0.12);
    border: 1px solid rgba(52,211,153,0.3);
    border-radius: 12px; color: #6ee7b7;
    font-size: 0.84rem; padding: 0.7rem 1rem;
    margin-bottom: 1rem;
}

/* ── Steps Hint ── */
.steps-hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgb(167 167 167 / 8%);
    border: 1px solid rgba(212, 6, 58, 0.18);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.steps-hint i { color: var(--accent); font-size: 1.1rem; flex-shrink:0; margin-top:2px; }

/* ── Gate Footer ── */
.gate-foot {
    font-size: 0.74rem; color: var(--text-muted);
    text-align: center; margin-top: 1.1rem;
}
.gate-foot a { color: var(--accent2); text-decoration: none; }

/* ── Logo Bar ── */
.logo-bar { margin-top: 2rem; text-align: center; }
.logo-bar img { height: 32px; opacity: 0.7; }

/* ── Form Panel Toggle ── */
.form-panel { display: none; }
.form-panel.active { display: block; }

/* ── Privacy Note ── */
.privacy-note {
    font-size: 0.72rem;
    color: rgba(143,163,196,0.55);
    text-align: center; margin-top: 0.75rem; line-height: 1.5;
}
.privacy-note a { color: var(--accent2); text-decoration: none; }

/* ── Network Footer Links ── */
.network-links {
    display: flex; gap: 8px; align-items: center;
    justify-content: center; margin-top: 1.2rem; flex-wrap: wrap;
}
.network-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.72rem; color: var(--text-muted);
    text-decoration: none; transition: color 0.2s;
}
.network-link:hover { color:var(--accent); }
.network-dot { color: rgba(143,163,196,0.35); font-size: 0.6rem; }
