/* Design System Variables */
:root {
    --bg-color: #1a1b1d; /* Very dark charcoal, almost black */
    --text-primary: #ffffff;
    --text-muted: #8b92a5;
    --brand-green: #67a67f;
    --link-green: #37d67a;
    
    --btn-secondary-bg: #679275;
    --btn-secondary-text: #1a2c20;
    --btn-primary-bg: #2b2e35;
    --btn-primary-text: #ffffff;
    
    --disabled-opacity: 0.5;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(103, 166, 127, 0.2);
    border-top-color: var(--brand-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Split Layout */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Column: Hero Illustration */
.hero-section {
    flex: 1;
    display: none;
    background-color: #131416;
    position: relative;
    overflow: hidden;
}

@media (min-width: 900px) {
    .hero-section {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.illustration-placeholder {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.globe-svg {
    position: absolute;
    left: -50px;
    bottom: -50px;
}

.shield-floating {
    position: absolute;
    top: 50px;
    right: 50px;
    transform: rotate(15deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: floatShield 6s ease-in-out infinite;
}

@keyframes floatShield {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.block-floating {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 50%, #3ca0ff 50%);
    box-shadow: inset -5px -5px 15px rgba(0,50,255,0.4), 0 10px 20px rgba(0,0,0,0.4);
    transform: rotate(30deg);
}

.block-1 {
    bottom: 80px;
    left: 80px;
    animation: floatBlock1 8s ease-in-out infinite;
}

@keyframes floatBlock1 {
    0%, 100% { transform: translateY(0) rotate(30deg); }
    50% { transform: translateY(-30px) rotate(45deg); }
}

.block-2 {
    bottom: 20px;
    right: 150px;
    width: 80px;
    height: 80px;
    animation: floatBlock2 7s ease-in-out infinite alternate;
}

@keyframes floatBlock2 {
    0% { transform: translateY(0) rotate(15deg); }
    100% { transform: translateY(25px) rotate(-15deg); }
}

/* Right Column: Actions */
.action-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.content-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.5s; /* Wait for loading screen */
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Header */
.logo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    /* Custom font for logo if needed */
}

/* Typography */
.headline {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* Checkbox */
.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 8px;
}

.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #3f434d;
    border-radius: 4px;
    transition: all 0.2s;
}

.terms-label:hover .checkmark {
    border-color: var(--brand-green);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.terms-text {
    font-size: 15px;
    color: #b0b5c4;
    line-height: 1.5;
}

.terms-text a {
    color: var(--link-green);
    text-decoration: none;
    font-weight: 500;
}

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

/* Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn {
    width: 100%;
    padding: 18px 24px;
    border-radius: 30px; /* Pill shape */
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn:disabled {
    opacity: var(--disabled-opacity);
    cursor: not-allowed;
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
}

.btn-secondary:not(:disabled):hover {
    background-color: #79a688;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:not(:disabled):hover {
    background-color: #383c45;
}

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

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #2b2e35;
}

.footer-text {
    font-size: 14px;
    color: #8b92a5;
}

.mobile-icon {
    color: #8b92a5;
}
