* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(to bottom, #fffde4, #ffffff);
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    display: flex;
    width: min(92vw, 900px);      
    min-height: 450px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}

.left, .right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding-bottom: 5px;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.tab.active {
    color: #000;
    border-bottom: 2px solid black;
}

/* Form Elements */
.pane { display: none; }
.pane.active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.field {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
}

.field input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    background: transparent;
    outline: none;
    padding: 10px 0;
    font-size: 16px;
}

.field label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #999;
    transition: 0.3s ease;
    pointer-events: none;
}

/* Floating Label Logic */
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
    top: -12px;
    font-size: 12px;
    color: #000;
    font-weight: bold;
}

.field input:focus {
    border-bottom: 2px solid black;
}

/* Error & Checkbox */
.error-msg {
    color: #ff4d4d;
    text-align: center;
    font-size: 0.85em;
    margin-bottom: 15px;
}

.show-password-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.show-password-container label {
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #2c2c2c;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover { background: #000; }

.right img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .box { flex-direction: column; height: auto; margin: 20px; }
    .left, .right { width: 100%; padding: 30px; }
    .right { order: 1; background: #f9f9f9; }
    .left { order: 2; }
    .right img { max-width: 150px; }
}