/* ====================== Custom Login Page Styles ========================= */

:root {
    --primary-blue: #1a2a4e;
    --point-red: #c62828;
    --bg-light-1: #ffffff;
    --bg-light-2: #f0f4f8;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-light-1) 0%, var(--bg-light-2) 100%);
    background-attachment: fixed;
}

/* ====================== Login Container ========================= */

.login-container {
    display: flex;
    width: 900px;
    height: 550px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

/* ====================== Left: Visual Area ========================= */

.login-visual {
    flex: 1;
    background: linear-gradient(rgba(26, 42, 78, 0.6), rgba(26, 42, 78, 0.6)),
                url('login-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}

.login-visual h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 800;
}

.login-visual p.brand-sub {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 500;
}

.login-visual p.desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.85;
    font-weight: 300;
}

/* ====================== Right: Form Area ========================= */

.login-form-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.logo-area {
    text-align: center;
    margin-bottom: 35px;
}

.logo-area h2 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

/* ====================== Form Elements ========================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(26, 42, 78, 0.05);
}

/* ====================== Login Button ========================= */

.login-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--point-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}

.login-btn:hover {
    background-color: #b71c1c;
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
    color: white;
    text-decoration: none;
}

/* ====================== Sub Links ========================= */

.sub-links {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

.sub-links a {
    color: #888;
    text-decoration: none;
}

.sub-links a:hover {
    color: var(--primary-blue);
}

.sub-links .signup-link {
    color: var(--primary-blue);
    font-weight: bold;
}

/* ====================== Footer ========================= */

.footer-copy {
    margin-top: 50px;
    font-size: 11px;
    color: #ccc;
    text-align: center;
}

.footer-copy a {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.footer-copy a:hover {
    color: #999;
}

/* ====================== Social Login ========================= */

.xn-social-login {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.xn-social-login .xn-social-login-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    color: #555;
    background: #f9f9f9;
    transition: all 0.2s ease;
}

.xn-social-login .xn-social-login-btn:hover {
    background: #eee;
    border-color: #ccc;
}

/* ====================== Responsive: Tablet & Mobile ========================= */

@media (max-width: 960px) {
    .login-container {
        width: 95%;
        height: auto;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    body, html {
        align-items: flex-start;
        padding: 0;
    }

    .login-container {
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .login-visual {
        padding: 30px;
        min-height: 180px;
    }

    .login-visual h1 {
        font-size: 1.8rem;
    }

    .login-visual p.brand-sub {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .login-visual p.desc {
        font-size: 0.85rem;
    }

    .login-form-section {
        padding: 30px 25px;
    }

    .logo-area {
        margin-bottom: 25px;
    }

    .logo-area h2 {
        font-size: 22px;
    }

    .sub-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-copy {
        margin-top: 30px;
    }
}
