.auth-hidden {
    display: none !important;
}

html,
body {
    width: 100%;
    min-width: 100%;
}

body.auth-mode {
    display: block;
    min-height: 100vh;
    overflow: hidden;
}

#auth-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fb, #e8eef8);
    font-family: 'Noto Sans KR', sans-serif;
}

.auth-card {
    width: min(420px, calc(100vw - 32px));
    padding: 34px 30px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(20, 35, 70, 0.12);
    text-align: center;
}

.auth-logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f6feb;
    color: #fff;
    font-size: 26px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #111827;
}

.auth-card p {
    margin: 0 0 24px;
    color: #657085;
    line-height: 1.5;
}

#google-login-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 16px;
    background: #1f6feb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

#google-login-btn:hover {
    background: #185abc;
}

#login-error {
    min-height: 22px;
    margin-top: 16px;
    color: #d93025;
    font-weight: 700;
}

.sidebar-user{
    padding:14px 16px 12px;
    border-top:1px solid rgba(255,255,255,.06);
}

.user-label{
    font-size:11px;
    font-weight:600;
    color:#7c8ba1;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:8px;
}

.user-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

.user-email{
    display:flex;
    align-items:center;
    gap:7px;

    color:#d8e1ee;
    font-size:12px;
    font-weight:500;

    overflow:hidden;
}

.user-email i{
    color:#60a5fa;
    flex-shrink:0;
}

#user-email{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

#logout-btn{
    border:none;
    background:none;

    color:#94a3b8;
    cursor:pointer;

    width:28px;
    height:28px;

    border-radius:6px;
    transition:all .15s ease;
}

#logout-btn:hover{
    background:rgba(255,255,255,.08);
    color:#ffffff;
}

body.auth-checking #auth-screen,
body.auth-checking #app {
    visibility: hidden;
}

@media (max-width: 520px) {
    .auth-card {
        width: calc(100vw - 32px);
        padding: 30px 22px;
    }
}
