/* ===== 背景 ===== */
body {
    background: #0f172a;
}

/* ===== layout ===== */
.login-container {
    display: flex;
    height: 100vh;
}

/* ===== 左側 ===== */
.login-form {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

/* ===== 卡片 ===== */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ===== icon ===== */
.brand-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 14px;
    background: linear-gradient(135deg,#4f46e5,#06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
}

/* ===== input ===== */
.form-control {
    border-radius: 12px;
    padding: 12px;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}

/* ===== login button ===== */
.login-btn {
    border-radius: 12px;
    background: linear-gradient(135deg,#4f46e5,#06b6d4);
    border: none;
}

.login-btn:hover {
    transform: translateY(-2px);
}

/* ===== google button ===== */
.google-btn {
    border-radius: 12px;
}

#errorBox {
    min-height: 20px;
}
/* ===== 右側 ===== */
.carousel-container {
    flex: 1;
}

/* ===== RWD ===== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-form {
        flex: none;
        padding: 20px;
    }

    .carousel-container {
        height: 35vh;
    }
}