/* =========================
   ACCOUNT PAGE
========================= */

.account-container {
    width: 100%;
    min-height: calc(100vh - 180px);

    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;

    padding: 80px 30px;

    background: linear-gradient(to bottom, #f8fafc, #ffffff);

    box-sizing: border-box;
}


/* =========================
   ACCOUNT CARD
========================= */

.account-box {
    width: 100%;
    max-width: 460px;

    background: #ffffff;
    border-radius: 20px;

    padding: 40px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);

    display: flex;
    flex-direction: column;

    transition: 0.25s ease;
}

.account-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}


/* =========================
   TITLE
========================= */

.account-box h2 {
    margin: 0 0 30px;
    text-align: center;

    font-size: 30px;
    font-weight: 700;

    color: #111827;
}


/* =========================
   FORM
========================= */

.account-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================
   INPUT
========================= */

.account-box input {
    width: 100%;
    padding: 15px 18px;

    border: 1px solid #d1d5db;
    border-radius: 12px;

    font-size: 15px;

    outline: none;
    transition: 0.2s ease;
}

.account-box input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* =========================
   BUTTON
========================= */

.account-box button {
    width: 100%;
    margin-top: 10px;

    padding: 15px;

    border: none;
    border-radius: 12px;

    background: #111827;
    color: white;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.account-box button:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

.account-links {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
}

.account-links a {
    color: #555;
}

.account-links a:hover {
    color: #000;
}

.account-links .divider {
    margin: 0 6px;
    color: #aaa;
}


/* =========================
   MOBILE FIX (핵심 수정)
========================= */

@media screen and (max-width: 768px) {

    .account-container {
        flex-direction: column;   /* 핵심 */
        align-items: center;

        gap: 24px;

        padding: 40px 16px 60px;
    }

    .account-box {
        max-width: 100%;
        width: 100%;

        padding: 26px 20px;

        border-radius: 18px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .account-box h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .account-box form {
        gap: 12px;
    }

    .account-box input {
        padding: 14px;
        font-size: 14px;
    }

    .account-box button {
        padding: 14px;
        font-size: 14px;
    }

    /* "또는" 구분선 위치 안정화 */
    .account-box:first-child::after {
        bottom: -28px;
        font-size: 12px;
    }

    .account-box:first-child::before {
        bottom: -16px;
    }
}