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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Left Side */
.left-side {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.logo-small {
    width: 100px;
    height: auto;
}

.logo-small img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Right Side */
.right-side {
    flex: 1;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    max-width: 600px;
}

.header {
    margin-bottom: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 500;
}

.logo img {
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.login-form h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
}

/* Email Input */
.email-input {
    width: 100%;
    padding: 16px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    margin-bottom: 12px;
}

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

.email-input:focus {
    border-color: #3a3a3a;
    background: #1f1f1f;
}

/* Submit Button (independent) */
.submit-btn {
    width: 100%;
    padding: 16px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #1f1f1f;
    border-color: #3a3a3a;
    transform: translateY(-1px);
}

.submit-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.submit-btn:hover img {
    opacity: 1;
}

/* Back to email button */
.back-to-email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #888;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-to-email-btn:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
    color: #fff;
}

.back-to-email-btn svg {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.back-to-email-btn:hover svg {
    opacity: 1;
}

/* Message boxes */
.message-box {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-box {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.loading-box::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #60a5fa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.error-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.success-box {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    padding: 14px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
}

.social-btn:hover {
    background: #1f1f1f;
    border-color: #3a3a3a;
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #666;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}

.divider span {
    padding: 0 16px;
}

/* Wallet Options */
.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.wallet-btn {
    width: 100%;
    padding: 16px 20px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
}

.wallet-btn:hover {
    background: #1f1f1f;
    border-color: #3a3a3a;
    transform: translateY(-1px);
}

.wallet-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multichain {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

/* View All Wallets */
.view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.badge {
    background: #2a2a2a;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #888;
}

/* World ID Button */
.worldid-btn {
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.worldid-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* View all wallets cursor */
.view-all {
    cursor: pointer;
}

.view-all:hover {
    opacity: 0.8;
}

/* Terms */
.terms {
    margin-top: 24px;
    text-align: center;
}

.terms p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.terms a {
    color: #fff;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .left-side {
        min-height: 40vh;
        padding: 40px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .right-side {
        max-width: 100%;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .left-side {
        padding: 30px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .right-side {
        padding: 30px 20px;
    }

    .login-form {
        max-width: 100%;
    }
}

/* Global button cursor fix */
button,
.social-btn,
.wallet-btn,
.worldid-btn,
.submit-btn,
.view-all,
[role="button"],
input[type="submit"],
input[type="button"] {
    cursor: pointer !important;
}

/* Links cursor */
a,
.terms a {
    cursor: pointer !important;
}
