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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 25%, #2d3748 50%, #1a2332 75%, #0f1419 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(225, 124, 42, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(18, 65, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.main-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2;
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.98) 50%, 
        rgba(255, 255, 255, 0.95) 100%);
    z-index: -1;
}

.image-section {
    flex: 1;
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #e2e8f0 25%, 
        #cbd5e1 50%, 
        #94a3b8 75%, 
        #64748b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(100, 116, 139, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: 1;
}

.illustration {
    max-width: 85%;
    max-height: 85%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 2;
    position: relative;
    animation: floatImage 6s ease-in-out infinite;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.01); }
}

.container {
    background: white;
    padding: 50px 35px;
    border-radius: 24px;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.12),
        0 0 0 1px rgba(255,255,255,0.8),
        inset 0 1px 0 rgba(255,255,255,0.9);
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #e17c2a 0%, 
        #f59e42 25%, 
        #124143 50%, 
        #0f3436 75%, 
        #e17c2a 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease-in-out infinite;
}

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

.logo {
    width: 130px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(225, 124, 42, 0.2));
}

h1 {
    font-size: 28px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #e17c2a 0%, #f59e42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: none;
}

.btn {
    background: linear-gradient(135deg, #124143 0%, #0f3436 100%);
    color: white;
    padding: 18px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(18, 65, 67, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Ensure proper touch targets on mobile */
    min-height: 52px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    padding: 2px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(18, 65, 67, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #0f3436 0%, #124143 100%);
}

.btn:active {
    transform: translateY(-1px);
}

.btn.ndi-btn,
.btn.kyc-btn {
    background: linear-gradient(135deg, #124143 0%, #0f3436 100%);
}

.btn.ndi-btn:hover,
.btn.kyc-btn:hover {
    background: linear-gradient(135deg, #0f3436 0%, #124143 100%);
}

.btn.track-btn {
    background: linear-gradient(135deg, #e17c2a 0%, #f59e42 100%);
    box-shadow: 0 4px 15px rgba(225, 124, 42, 0.3);
}

.btn.track-btn:hover {
    background: linear-gradient(135deg, #c96a1f 0%, #e17c2a 100%);
    box-shadow: 
        0 12px 30px rgba(225, 124, 42, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.or {
    margin: 25px 0;
    color: #999;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.or::before,
.or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
}

.or::before {
    left: 0;
}

.or::after {
    right: 0;
}

.error-message {
    color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.1);
}

.error-message.show {
    display: block;
    animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message {
    color: #155724;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    display: none;
    box-shadow: 0 4px 12px rgba(21, 87, 36, 0.1);
}

.success-message.show {
    display: block;
    animation: slideInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.info {
    margin-top: 35px;
    text-align: left;
    font-size: 15px;
    color: #555;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid #e17c2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #e17c2a 0%, #f59e42 100%);
}

.info h3 {
    background: linear-gradient(135deg, #e17c2a 0%, #f59e42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.info ul {
    padding-left: 20px;
    margin-top: 12px;
}

.info li {
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
}

.info li::marker {
    color: #e17c2a;
}

/* Loading animation */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating elements animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(225, 124, 42, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatElements 8s ease-in-out infinite;
}

.floating-elements::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(18, 65, 67, 0.1) 0%, transparent 70%);
}

@keyframes floatElements {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1); 
        opacity: 0.6;
    }
}

/* Enhanced micro-interactions */
.container {
    animation: containerEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes containerEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn {
    transform-origin: center;
}

.btn:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* Focus states for accessibility */
.btn:focus {
    outline: 3px solid rgba(225, 124, 42, 0.3);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid rgba(225, 124, 42, 0.5);
}

/* Responsive Design - MOBILE FIRST APPROACH */
@media (max-width: 768px) {
    body {
        align-items: stretch;
    }

    .main-container {
        flex-direction: column;
        min-height: 100vh;
    }

    /* PRIORITY: Form section comes first on mobile */
    .form-section {
        background: rgba(255, 255, 255, 0.98);
        order: 1;
        flex: 1;
        min-height: 100vh;
        padding: 20px 15px;
    }

    /* Hide image section completely on mobile to save space */
    .image-section {
        display: none;
    }

    .container {
        padding: 35px 25px;
        margin: 0;
        border-radius: 20px;
        max-width: 100%;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .logo {
        width: 110px;
        margin-bottom: 25px;
    }

    .btn {
        padding: 18px 20px;
        font-size: 16px;
        gap: 12px;
        margin-bottom: 14px;
        min-height: 54px; /* Better touch targets */
    }

    .btn img {
        width: 28px;
        height: 28px;
    }

    .info {
        padding: 20px;
        font-size: 14px;
        margin-top: 25px;
    }

    .or {
        margin: 20px 0;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 15px 10px;
    }

    .container {
        padding: 25px 20px;
        border-radius: 16px;
    }

    h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .logo {
        width: 100px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 16px 18px;
        font-size: 15px;
        gap: 10px;
        margin-bottom: 12px;
        min-height: 52px;
    }

    .btn img {
        width: 26px;
        height: 26px;
    }

    .info {
        padding: 18px;
        font-size: 13px;
        margin-top: 20px;
    }

    .info h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .or {
        margin: 18px 0;
        font-size: 13px;
    }
}

/* Tablet landscape - Show image but smaller */
@media (min-width: 769px) and (max-width: 1024px) {
    .image-section {
        flex: 0.6;
    }
    
    .form-section {
        flex: 1;
    }

    .container {
        max-width: 400px;
    }
}

/* Large screens - original design */
@media (min-width: 1025px) {
    .main-container {
        flex-direction: row;
    }

    .form-section {
        flex: 1;
        order: 1;
    }

    .image-section {
        flex: 1;
        order: 2;
        display: flex;
    }
}