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

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Subtle Pattern Background */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: #fafafa;
    overflow: hidden;
}

/* Abstract floating squares pattern */
.background-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Large rotated squares - very subtle */
        url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='30' y='30' width='60' height='60' rx='4' fill='none' stroke='%23e8e8e8' stroke-width='1' transform='rotate(15 60 60)'/%3E%3C/svg%3E"),
        /* Medium squares */
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='20' y='20' width='40' height='40' rx='3' fill='none' stroke='%23e5e5e5' stroke-width='1' transform='rotate(-10 40 40)'/%3E%3C/svg%3E"),
        /* Small squares */
        url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='15' y='15' width='20' height='20' rx='2' fill='none' stroke='%23ebebeb' stroke-width='1' transform='rotate(25 25 25)'/%3E%3C/svg%3E");
    background-size: 280px 280px, 200px 200px, 140px 140px;
    background-position: 0 0, 50px 30px, 20px 60px;
    opacity: 0.35;
}

/* Additional scattered squares layer */
.background-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Filled subtle squares */
        url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='80' y='80' width='40' height='40' rx='4' fill='%23f0f0f0' transform='rotate(20 100 100)'/%3E%3C/svg%3E"),
        /* Outline squares at different angles */
        url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='50' y='50' width='60' height='60' rx='5' fill='none' stroke='%23e0e0e0' stroke-width='1.5' transform='rotate(-20 80 80)'/%3E%3C/svg%3E"),
        /* Tiny accent squares */
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='40' y='40' width='20' height='20' rx='2' fill='%23f5f5f5' transform='rotate(45 50 50)'/%3E%3C/svg%3E"),
        /* Double nested squares */
        url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='40' y='40' width='60' height='60' rx='4' fill='none' stroke='%23e8e8e8' stroke-width='1' transform='rotate(10 70 70)'/%3E%3Crect x='50' y='50' width='40' height='40' rx='3' fill='none' stroke='%23efefef' stroke-width='1' transform='rotate(10 70 70)'/%3E%3C/svg%3E");
    background-size: 320px 320px, 260px 260px, 180px 180px, 300px 300px;
    background-position: 10% 15%, 70% 20%, 40% 70%, 85% 65%;
    opacity: 0.3;
}

/* Typography Scale */
h1 {
    font-family: 'Inter', sans-serif;
    font-size: 60px;
    letter-spacing: -1.5px;
    font-weight: 700;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-size: 50px;
    letter-spacing: -1.2px;
    font-weight: 700;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    letter-spacing: -0.9px;
    font-weight: 600;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 30px;
    letter-spacing: -0.5px;
    font-weight: 600;
}

h5 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    letter-spacing: 0px;
    font-weight: 500;
}

h6 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    letter-spacing: 0px;
    font-weight: 500;
}

p, span, a, input, button, label {
    font-family: 'Inter', sans-serif;
}


/* Floating Container */
.floating-container {
    display: flex;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    min-height: 560px;
}

/* Form Panel - Left Side */
.form-panel {
    flex: 1;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    max-width: 420px;
    border-right: 1px solid #f0f0f0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
}

.logo-img {
    height: 28px;
    width: auto;
}

/* Form Content */
.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Form Header */
.form-header {
    margin-bottom: 28px;
}

.form-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #666;
}

/* Form Styles */
.sign-in-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.input-group input::placeholder {
    color: #999;
}

/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #000000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #222222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: scale(0.99);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e8e8e8;
}

.divider span {
    padding: 0 16px;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: #ccc;
    background-color: #f8f8f8;
    transform: translateY(-1px);
}

.more-btn {
    color: #666;
}

/* Primary Social Login Buttons */
.social-login-primary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn-large {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #000000;
    border-radius: 6px;
    background-color: #000000;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.social-btn-large:hover {
    background-color: #222222;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.social-btn-large:active {
    transform: scale(0.99);
}

.social-btn-large.google {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #d9d9d9;
}

.social-btn-large.google:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Sign Up Link */
.sign-up-link {
    text-align: center;
    margin-top: auto;
    padding-top: 24px;
    font-size: 14px;
    color: #666;
}

.sign-up-link a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
}

.sign-up-link a:hover {
    text-decoration: underline;
}

/* Info Panel - Right Side */
.info-panel {
    flex: 1;
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.info-content {
    max-width: 320px;
}

.info-illustration {
    margin-bottom: 28px;
}

.hero-image {
    width: 180px;
    height: auto;
    object-fit: contain;
}

.info-content h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #1a1a1a;
}

.info-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.learn-more-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #000000;
    border-radius: 20px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.learn-more-btn:hover {
    background-color: #000000;
    color: #fff;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d0d0d0;
    transition: background-color 0.2s;
}

.dot.active {
    background-color: #000000;
    width: 24px;
    border-radius: 4px;
}

/* Footer */
.footer {
    margin-top: 24px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: #999;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    gap: 16px;
}

.loading-overlay p {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8e8e8;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error Message */
.error-message {
    margin-top: 16px;
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 14px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button disabled state */
.social-btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    .floating-container {
        flex-direction: column;
        max-width: 100%;
    }

    .form-panel {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 24px;
    }

    .info-panel {
        padding: 32px 24px;
        min-height: 300px;
    }

    .hero-image {
        width: 140px;
    }

    .info-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .social-login {
        gap: 8px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
    }

    .form-header h1 {
        font-size: 22px;
    }
}
