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

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1470115636492-6d2b56f9146d?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #76665c;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,245,238,.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 420px;
    max-width: calc(100% - 40px);
    padding: 45px;
    border-radius: 30px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 25px 60px rgba(80,50,30,.25);
    text-align: center;
    animation: cardIn 0.7s ease both;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 22px;
    color: #76665c;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.close-btn:hover { color: #A87952; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo { margin-bottom: 8px; }
.logo img {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #fff;
    padding: 10px 14px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #76665c;
    font-size: 14px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.login-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    color: #76665c;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.login-tab:hover { color: #B8866B; }
.login-tab.active {
    color: #B8866B;
    border-bottom-color: #B8866B;
    font-weight: 600;
}

.login-panel { display: none; }
.login-panel.active { display: block; animation: panelIn 0.3s ease; }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-box { margin-bottom: 18px; text-align: left; }
.input-box label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #76665c;
}
.input-box input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 15px;
    border: none;
    outline: none;
    background: rgba(255,255,255,.8);
    font-size: 14px;
    font-family: inherit;
    color: #5a4d45;
}
.input-box input::placeholder { color: #a99f98; }

.login-error {
    display: none;
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
}
.login-error.show { display: block; }

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #C79B73, #A87952);
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    font-family: inherit;
    font-weight: 600;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(170,120,80,.4);
}

@media (max-width: 480px) {
    .login-card { padding: 32px 24px; }
    .logo img { width: 120px; }
    .close-btn { top: 16px; right: 20px; }
}
