/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Page Styles */
.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0F408F 0%, #1e5bb8 50%, #0F408F 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.loading-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 4s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loading-text {
    color: white;
    text-align: center;
}

.loading-text h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
    }
    to {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.loading-text p {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    letter-spacing: -0.01em;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Loading page fade out animation */
.loading-page.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Loading Page */
@media (max-width: 768px) {
    .loading-animation lottie-player {
        width: 300px !important;
        height: 225px !important;
    }
    
    .loading-text h2 {
        font-size: 36px;
    }
    
    .loading-text p {
        font-size: 16px;
    }
    
    .loading-content {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .loading-animation lottie-player {
        width: 250px !important;
        height: 187px !important;
    }
    
    .loading-text h2 {
        font-size: 28px;
    }
    
    .loading-text p {
        font-size: 14px;
    }
    
    .loading-content {
        gap: 25px;
        padding: 20px;
    }
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #FFFFFF;
    overflow: hidden;
}

html {
    overflow: hidden;
}

/* Container */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

/* Coming Soon Page specific styles */
#coming-soon-page {
    display: none; /* Initially hidden, will be shown after loading */
}

#coming-soon-page.fade-in {
    display: flex !important;
    animation: fadeInUp 1s ease-out;
}

/* Background Video */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #06b6d4 50%, #0891b2 75%, #0e7490 100%);
}

.background-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    z-index: 1;
}

.background-video img {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: bottom;
    z-index: 0;
    opacity: 1;
}

/* Mobile background image optimizations */
@media (max-width: 768px) {
    .background-video img {
        filter: brightness(0.9) contrast(1.1);
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow:auto;
}

/* Sign Up Section */
.sign-up-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Section */
.sign-up-section .section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    padding: 0 40px;
    width: 100%;
    height: 100%;
}

/* Content */
.content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 100px;
    padding: 28px;
    width: 720px;
    background: linear-gradient(136deg, 
        rgba(255, 255, 255, 0.95) 3%, 
        rgba(255, 255, 255, 0.9) 49%, 
        rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 32px;
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    box-shadow: 
        0 20px 40px 0 rgba(0, 0, 0, 0.1),
        0 8px 32px 0 rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: transform;
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    .content {
        /* Reduce backdrop filter intensity on mobile for better performance */
        backdrop-filter: blur(12px) saturate(140%);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        /* Reduce box shadow complexity */
        box-shadow: 
            0 4px 16px 0 rgba(31, 38, 135, 0.1),
            0 2px 8px 0 rgba(31, 38, 135, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        /* Optimize transitions */
        transition: transform 0.2s ease;
    }
    
    .content:hover {
        transform: translateY(-1px);
    }
}

/* Glassmorphism overlay effect */
.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 50%, 
        transparent 100%);
    z-index: 1;
}

/* Hover effect for glassmorphism */
.content:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px 0 rgba(31, 38, 135, 0.2),
        0 8px 24px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 32px;
    width: 100%;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 16px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7.2px;
    padding: 0 7.34px 0 0;
}

.logo-icon {
    width: 79.46px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Michroma', sans-serif;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.42em;
    letter-spacing: -0.01em;
    color: #0F408F;
    text-align: center;
}

/* Main Section */
.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 20px;
    padding: 30px 80px;
    background: #FFFFFF;
    border-radius: 24px;
    width: 656px;
    height: fit-content;
}

/* Coming Soon Content */
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 6px;
}

/* Coming Soon Title */
.coming-soon-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.25em;
    letter-spacing: -0.03em;
    color: #1F1F1F;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 30px 0 15px 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.description-heading {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.25em;
    letter-spacing: -0.03em;
    color: #10408F;
    text-align: center;
}

/* Description Text */
.description-text {
    font-family: 'Inter', sans-serif;
    font-weight: 450;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    letter-spacing: -0.02em;
    color: #737373;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}


.register-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 0px 10px 19px 10px;
    margin: 28px 10px 10px 10px;
}

.register-box h1 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 1.25em;
    letter-spacing: -0.03em;
    color: #1F1F1F;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 30px 0 15px 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Registration Form */
.registration-form {
    width: 370px;
    height: 115px;
    padding-bottom: 10px;
}

/* Email Field */
.email-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
    gap: 8px;
}

.field-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    flex: 1;
    transition: all 0.3s ease;
}

.field-container:focus-within {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 64, 143, 0.3);
    box-shadow: 0 0 0 3px rgba(15, 64, 143, 0.1);
}

.envelope-icon {
    width: 24px;
    height: 24px;
    color: #A3A3A3;
    flex-shrink: 0;
}

.email-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-weight: 450;
    font-size: 14px;
    line-height: 1.43em;
    letter-spacing: -0.02em;
    color: #A3A3A3;
    width: 100%;
}

.email-input::placeholder {
    color: #A3A3A3;
}

.email-input:focus {
    color: #1F1F1F;
}

.email-input:focus + .envelope-icon {
    color: #0F408F;
}

/* Register Button */
.register-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    background: #0F408F;
    border: none;
    border-radius: 1000px;
    height: 44px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(15, 64, 143, 0.2);
    user-select: none;
    -webkit-user-select: none;
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(15, 64, 143, 0.2);
}

.register-button:hover:not(:disabled) {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 64, 143, 0.3);
}

.register-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.register-button:active {
    transform: translateY(0);
    background: #082a5a;
}

/* Mobile-specific touch states */
@media (hover: none) and (pointer: coarse) {
    .register-button:hover {
        transform: none;
        background: #0F408F;
    }
    
    .register-button:active {
        background: #082a5a;
        transform: scale(0.98);
    }
}

.button-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.7142857142857142em;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-align: center;
    opacity: 0.4;
}

.button-icon {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.powered-by {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.399999976158142em;
    letter-spacing: -0.02em;
    color: #525252;
    text-align: left;
}

.first-cognition {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 4px;
}

.first-cognition:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.fc-logo {
    height: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 28.96px;
    height: 22px;
}

.fc-logo-svg {
    width: 28.96px;
    height: 22px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: brightness(0);
}

.fc-logo-svg:hover {
    transform: scale(1.15);
    filter: brightness(0) drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}

.fc-text {
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.399999976158142em;
    letter-spacing: -0.02em;
    color: #525252;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fc-text:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content {
        max-width: 800px;
        padding: 24px;
        gap: 60px;
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
    }
    
    .main-section {
        padding: 30px 60px;
        gap: 24px;
        width: 100%;
        max-width: 656px;
    }
    
    .coming-soon-content {
        gap: 20px;
    }
    
    .coming-soon-title {
        font-size: 36px;
    }
    
    .registration-form {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 896px) {
    .content {
        padding: 22px;
        gap: 50px;
        border-radius: 28px;
    }
    
    .main-section {
        padding: 25px 50px;
        gap: 22px;
        border-radius: 20px;
        width: 100%;
        max-width: 656px;
    }
    
    .coming-soon-content {
        gap: 18px;
    }
    
    .coming-soon-title {
        font-size: 32px;
        line-height: 1.15em;
    }
    
    .registration-form {
        width: 100%;
        max-width: 360px;
    }
    
    .logo-text {
        font-size: 21px;
    }
    
    .logo-icon {
        width: 65px;
        height: 59px;
    }
}

@media (max-width: 768px) {
    .sign-up-section {
        padding: 16px 0;
    }
    
    .content {
        width: 95%;
        padding: 20px;
        gap: 40px;
        backdrop-filter: blur(12px) saturate(140%);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        border-radius: 24px;
        margin: 0 auto;
    }
    
    .main-section {
        padding: 24px 32px;
        gap: 24px;
        border-radius: 20px;
        width: 100%;
        max-width: 656px;
    }
    
    .coming-soon-content {
        gap: 16px;
    }
    
    .coming-soon-title {
        font-size: 28px;
        line-height: 1.2em;
        margin-bottom: 8px;
    }
    
    .description-text {
        font-size: 13px;
        line-height: 1.4em;
    }
    
    .registration-form {
        width: 100%;
        max-width: 350px;
    }
    
    .field-container {
        padding: 10px 14px;
    }
    
    .email-input {
        font-size: 13px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 60px;
        height: 54px;
    }
    
    .register-button {
        height: 48px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .button-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .content {
        width: 98%;
        padding: 16px;
        gap: 32px;
        backdrop-filter: blur(8px) saturate(120%);
        -webkit-backdrop-filter: blur(8px) saturate(120%);
        border-radius: 20px;
        margin: 8px auto;
    }
    
    .main-section {
        padding: 20px 24px;
        gap: 20px;
        border-radius: 16px;
        width: 100%;
        max-width: 656px;
    }
    
    .coming-soon-content {
        gap: 14px;
    }
    
    .coming-soon-title {
        font-size: 24px;
        line-height: 1.25em;
        margin-bottom: 12px;
    }
    
    .description-text {
        font-size: 12px;
        line-height: 1.4em;
    }
    
    .registration-form {
        width: 100%;
        max-width: 300px;
    }
    
    .field-container {
        padding: 8px 12px;
    }
    
    .email-input {
        font-size: 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-icon {
        width: 50px;
        height: 45px;
    }
    
    .footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }


    .register-button {
        height: 48px;
        padding: 12px 16px;
        width: 100%;
        max-width: 280px;
        font-size: 14px;
        border-radius: 24px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(15, 64, 143, 0.2);
    }
    
    .button-text {
        font-size: 14px;
        font-weight: 600;
    }
    
    .powered-by {
        font-size: 14px;
    }
    
    .fc-text {
        font-size: 14px;
    }
}

/* Animation for page load */

.main-content {
    animation: fadeInUp 0.8s ease-out;
}

.logo-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-section {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}


/* Improve flodesk styling */
[data-ff-el="form"] {
    padding: 0 !important;
}

[data-ff-el="form"] [class*="title"] {
    display: none !important;
}

[data-ff-el="form"][class*="subtitle"] {
    display: none !important;
}

[class*="__field"] {
    margin: 2px !important;
}

/*

[data-ff-el="submit"]{
    background-color: #10408F !important;
    color: #FFFFFF !important;
}
*/