* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

.gateway-container {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
}

/* Forms Panel */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1e3a 100%);
    padding: 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.form-card {
    background: rgba(26, 30, 58, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 25px 35px;
    width: 100%;
    max-width: 500px;
    max-height: 95vh;
    max-height: 95dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.form-card::-webkit-scrollbar {
    width: 6px;
}

.form-card::-webkit-scrollbar-track {
    background: transparent;
}

.form-card::-webkit-scrollbar-thumb {
    background: rgba(136, 146, 176, 0.2);
    border-radius: 3px;
}

.form-card::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 146, 176, 0.3);
}

/* Beta Tag */
.beta-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.form-card {
    position: relative;
}

/* Dog Pack Image Section */
.dogpack-section {
    width: 300px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    background: rgba(26, 30, 58, 0.5);
    border-radius: 12px;
}

.dogpack-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    opacity: 0.85;
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 8px;
}

.logo {
    width: 220px;
    height: 220px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 255, 136, 0.4);
    border: 2px solid rgba(0, 255, 136, 0.5);
    border-radius: 8px;
}

.logo-section h1 {
    color: #00ff88;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tagline {
    background: linear-gradient(90deg, #00ff88 0%, #00cc88 50%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    animation: shimmer 3s infinite;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6)) drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
    -webkit-text-stroke: 0.5px rgba(0, 255, 136, 0.3);
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Tab Container */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: #8892b0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #00ff88;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff88;
}

.tab-btn:hover {
    color: #00ff88;
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    position: relative;
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(136, 146, 176, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input[type="date"] {
    color-scheme: dark;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.form-group input:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Override browser autofill styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(10, 14, 39, 0.95) inset !important;
    -webkit-text-fill-color: #fff !important;
    border: 1px solid rgba(136, 146, 176, 0.3) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 12px;
    color: #8892b0;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group input[type="date"] + label,
.form-group input[type="email"] + label,
.form-group input[type="tel"] + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: #1a1e3a;
    padding: 0 5px;
    color: #00ff88;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 20px;
}

/* DOB Warning Checkbox */
.checkbox-group.dob-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-top: -10px;
}

.checkbox-group.dob-warning .checkbox-label span {
    color: #ffcc66;
    font-size: 12px;
    line-height: 1.4;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    color: #8892b0;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #00ff88;
}

.checkbox-label input[type="checkbox"].terms-locked {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: all;
}

.checkbox-label span {
    flex: 1;
}

.terms-link {
    color: #00ff88;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Error Messages */
.error-message {
    display: none;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ff3b30;
    font-size: 14px;
    margin-bottom: 20px;
}

.error-message.show {
    display: block;
}

.location-warning {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #ff9500;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    border-radius: 8px;
    color: #0a0e27;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: rgba(136, 146, 176, 0.3);
    color: #8892b0;
    cursor: not-allowed;
    transform: none;
}

/* Forgot Password */
.forgot-password {
    display: block;
    text-align: center;
    color: #8892b0;
    font-size: 13px;
    text-decoration: none;
}

.forgot-password:hover {
    color: #00ff88;
    text-decoration: underline;
}

/* Terms Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1e3a 0%, #0a0e27 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    color: #8892b0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #00ff88;
}

.modal-content h2 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 28px;
}

.terms-content {
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: transparent;
}

.terms-content::-webkit-scrollbar-thumb {
    background: rgba(136, 146, 176, 0.2);
    border-radius: 3px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 146, 176, 0.3);
}

.terms-content h3 {
    color: #fff;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.terms-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

.accept-terms-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: none;
    border-radius: 8px;
    color: #0a0e27;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accept-terms-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-panel {
        padding: 20px;
    }

    .form-card {
        padding: 30px 20px;
    }

    .dogpack-section {
        width: 240px;
        height: 90px;
    }

    .logo-section h1 {
        font-size: 24px;
    }

    .logo {
        width: 140px;
        height: 140px;
    }
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar,
.form-panel::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.form-panel::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
}

.modal-content::-webkit-scrollbar-thumb,
.form-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.form-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Info Icon - Top Left */
.info-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Sign Up Free CTA */
.signup-free-cta {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.signup-free-cta span {
    color: #00ff88;
    font-weight: 700;
    text-decoration: underline;
}

.signup-free-cta:hover {
    color: #fff;
}

.signup-free-cta:hover span {
    color: #33ffaa;
}

/* Info Modal Overlay */
.info-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-modal {
    background: linear-gradient(145deg, #1a1e3a 0%, #0d1025 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 20px;
    max-width: 380px;
    width: calc(100% - 30px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: 20px;
}

@media (max-height: 680px), (max-width: 380px) {
    .info-modal {
        padding: 15px;
        border-radius: 12px;
        margin: 10px;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }
    .info-modal-header {
        margin-bottom: 12px;
    }
    .info-modal-logo {
        width: 50px;
        margin-bottom: 8px;
    }
    .info-modal-header h2 {
        font-size: 16px;
        margin-bottom: 3px;
    }
    .info-modal-subtitle {
        font-size: 11px;
    }
    .info-modal-features {
        gap: 6px;
        margin-bottom: 12px;
    }
    .info-feature {
        padding: 6px 8px;
        gap: 8px;
    }
    .info-feature-icon {
        font-size: 16px;
    }
    .info-feature strong {
        font-size: 12px;
    }
    .info-feature p {
        font-size: 10px;
    }
    .info-modal-cta {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.info-modal-close:hover {
    color: #fff;
}

.info-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.info-modal-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.info-modal-header h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 5px;
}

.info-modal-subtitle {
    color: #00ff88;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.info-modal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.info-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.info-feature strong {
    color: #fff;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.info-feature p {
    color: #888;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.info-modal-cta {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-modal-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}
