/* ==========================================================================
   Green Bubble / Gallery+ Standalone Signup Stylesheet
   100% Self-Contained. Zero dependencies on index.css or global stylesheets.
   ========================================================================== */

:root {
    --bg-primary: #080f0c;
    --bg-secondary: #0e1a14;
    --accent-green-primary: #77a957;
    --accent-green-secondary: #4ade80;
    --accent-green-hover: #5d8a43;
    --text-primary: #ffffff;
    --text-secondary: #a3b8ad;
    --text-muted: #6b8275;
    --glass-bg: rgba(14, 26, 20, 0.75);
    --glass-card: rgba(18, 33, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-border-focus: rgba(119, 169, 87, 0.5);
    --danger-red: #ef4444;
    --warning-amber: #f59e0b;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(74, 222, 128, 0.15);
}

/* Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Atmospheric Background Blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}
.bg-blob-1 {
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-green-primary) 0%, transparent 70%);
}
.bg-blob-2 {
    bottom: -120px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #2d5a37 0%, transparent 70%);
}

/* Main Container */
.signup-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 24px;
    margin: 20px auto;
}

/* Glassmorphic Card */
.glass-card {
    background: var(--glass-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-subtle), var(--shadow-glow);
    transition: all 0.3s ease;
}

/* Brand Header */
.brand-header {
    text-align: center;
    margin-bottom: 28px;
}
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(119, 169, 87, 0.15);
    border: 1px solid rgba(119, 169, 87, 0.3);
    border-radius: 50%;
    margin-bottom: 12px;
}
.brand-logo-wrap img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.brand-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.brand-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Android App Nudge Banner */
.android-nudge {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease forwards;
}
.nudge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.android-nudge p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
}
.nudge-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-green-primary);
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    transition: background 0.2s ease;
}
.btn-sm-primary:hover {
    background: var(--accent-green-hover);
}
.btn-sm-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-sm-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Error Banner */
.error-banner {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}
.error-banner.active {
    display: flex;
}

/* Google SSO Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: #1f2937;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
.btn-google:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}
.btn-google img {
    width: 20px;
    height: 20px;
}

/* Visual Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--glass-border);
}
.divider span {
    padding: 0 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    background: rgba(8, 15, 12, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus {
    border-color: var(--accent-green-primary);
    box-shadow: 0 0 0 3px rgba(119, 169, 87, 0.2);
}
.form-group input::placeholder {
    color: var(--text-muted);
}

/* Password Input with Visibility Toggle */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-wrap input {
    padding-right: 44px;
}
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    border-radius: 4px;
}
.password-toggle-btn:hover {
    color: var(--accent-green-secondary);
}
.password-toggle-btn:focus {
    outline: none;
    color: var(--text-primary);
}

/* Submit Button */
.btn-primary {
    width: 100%;
    background: var(--accent-green-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover {
    background: var(--accent-green-hover);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Bottom Links */
.footer-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 22px;
}
.footer-text a {
    color: var(--accent-green-secondary);
    text-decoration: none;
    font-weight: 500;
}
.footer-text a:hover {
    text-decoration: underline;
}

/* View Sections (Card Switcher) */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}
.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* Verification Waiting Gate Specifics */
.gate-content {
    text-align: center;
}
.gate-icon-pulse {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.12);
    border-radius: 50%;
    color: var(--accent-green-secondary);
    font-size: 28px;
}
.gate-icon-pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-green-secondary);
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.gate-content h2 {
    font-size: 22px;
    margin-bottom: 10px;
}
.gate-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.gate-email-box {
    background: rgba(8, 15, 12, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 10px 14px;
    color: var(--accent-green-secondary);
    font-weight: 600;
    margin-bottom: 24px;
    word-break: break-all;
}
.gate-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Toast Notifications */
.toast-notice,
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111A15;
    color: #85E370;
    border: 1px solid rgba(133, 227, 112, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast-notice.show,
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Privacy & Terms Modal Overlay
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #0f1f17;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--glass-border);
}
.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.privacy-highlight-box {
    background: rgba(119, 169, 87, 0.08);
    border: 1px solid rgba(119, 169, 87, 0.2);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 18px;
}
.privacy-point {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.privacy-point:last-child {
    margin-bottom: 0;
}
.privacy-point i {
    color: var(--accent-green-secondary);
    font-size: 16px;
    margin-top: 2px;
}
.privacy-point div strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.privacy-legal-links {
    margin-top: 18px;
    font-size: 13px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}
.privacy-legal-links a {
    color: var(--accent-green-secondary);
    text-decoration: none;
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.privacy-legal-links a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(8, 15, 12, 0.5);
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
}

/* Vault Ready / Success View Specifics */
.vault-ready-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(119, 169, 87, 0.15);
    border: 2px solid var(--accent-green-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green-secondary);
    font-size: 36px;
}

/* Form Label Row with Inline Action */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.label-row label {
    margin-bottom: 0;
}
.link-forgot {
    color: var(--accent-green-secondary);
    font-size: 12.5px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    cursor: pointer;
}
.link-forgot:hover {
    color: var(--accent-green-primary);
    text-decoration: underline;
}

/* Reset Password Card Specifics */
.reset-instructions {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

@keyframes ssoPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.pulse-highlight {
    animation: ssoPulse 1.2s ease-in-out 3 !important;
    border-color: #4ade80 !important;
    outline: 2px solid rgba(74, 222, 128, 0.4) !important;
}


