@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

body {
    background-color: #6B7280;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    animation: fadeIn 0.8s ease-in;
}

/* Main Container */
.card-container {
    background: linear-gradient(135deg, #f3f3eb, #e6e3c9);
    width: 100%;
    max-width: 1200px;
    border-radius: 30px;
    display: flex;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 15px;
    gap: 15px;
    animation: slideUp 0.8s ease-out;
}

/* Left Panel - Form */
.left-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    margin-bottom: 40px;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-text {
    border: 1px solid #71717A;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    color: #3F3F46;
    font-size: 14px;
}

.form-content {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    animation: slideUp 0.6s ease-out 0.3s both;
}

.form-content h1 {
    font-size: 32px;
    color: #18181B;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-content p {
    color: #52525B;
    font-size: 14px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
    animation: slideUp 0.6s ease-out both;
}

.input-group:nth-child(1) {
    animation-delay: 0.4s;
}

.input-group:nth-child(2) {
    animation-delay: 0.5s;
}

.input-group label {
    display: block;
    font-size: 12px;
    color: #71717A;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    background-color: #FFFFFF;
    font-size: 14px;
    outline: none;
    color: #3F3F46;
    transition: all 0.3s ease;
}

.input-group input:focus {
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.1);
    transform: translateY(-2px);
}

#passwordField {
    padding-right: 56px;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 38px;
    cursor: pointer;
    color: #A1A1AA;
    font-size: 18px;
    transition: all 0.3s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.toggle-password [hidden] {
    display: none;
}

.toggle-password:focus-visible {
    outline: 2px solid #001F3F;
    outline-offset: 4px;
    border-radius: 4px;
}

.toggle-password:hover {
    transform: scale(1.2);
    color: #001F3F;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #001F3F;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out 0.6s both;
}

.btn-submit:hover {
    background-color: #000F1F;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 31, 63, 0.3);
}

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

/* Right Panel - Image & Overlays */
.right-panel {
    flex: 1.2;
    background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease-out 0.2s both;
}

/* Responsiveness */
@media (max-width: 992px) {
    .card-container {
        flex-direction: column;
    }

    .right-panel {
        min-height: 400px;
        order: -1;
    }

    .left-panel {
        padding: 20px;
    }

    .logo-text {
        display: none;
    }
}
