:root {
    --main-blue: #26539C;
    --main-blue-hover: #1D407B;
    --sky-blue: #1C9AD6;
    --sky-blue-hover: #1585BA;
    --text-main: #1A1C1E;
    --text-muted: #6C727A;
    --bg-color: #F4F7FA;
    --border-color: #E2E8F0;
    --radius: 12px;
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

/* --- Background --- */
.bg-illustration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.illustration-svg {
    position: absolute;
    width: 80%;
    max-width: 1200px;
    height: auto;
    opacity: 0.4;
    color: var(--main-blue);
}

.pos-left {
    top: -10%;
    left: -10%;
    transform: rotate(-15deg);
}

.pos-right {
    bottom: -5%;
    right: -5%;
    transform: rotate(165deg);
}

/* --- Login Wrapper --- */
.login-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 40px auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding: 36px 40px;
    border: 1px solid var(--border-color);
}

/* --- Logo --- */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.logo-svg {
    width: 260px;
    height: auto;
    flex-shrink: 0;
}

.logo-svg text:first-child,
.logo-svg rect {
    fill: var(--main-blue);
}

.campus-tag {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    padding-left: 4px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

/* --- Card Title --- */
.login-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-blue);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* --- Form --- */
.form-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 0.95rem;
    background: #F8FAFC;
    transition: border-color 0.2s;
}

.input-group input:focus {
    background: #fff;
    border-color: var(--main-blue);
}

/* --- Button --- */
.btn-login {
    width: 100%;
    padding: 16px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: opacity 0.2s;
    background: var(--main-blue);
}

.btn-login:hover {
    opacity: 0.9;
}

/* --- Footer (under form) --- */
.section-footer {
    margin-top: 30px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.utility-links {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
}

.utility-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.utility-links a:hover {
    text-decoration: underline;
    color: var(--main-blue);
}

.utility-links span {
    color: var(--border-color);
}

/* --- Page Footer --- */
.login-footer {
    margin-top: 30px;
    padding-bottom: 10px;
    text-align: center;
    width: 100%;
}

.privacy-link {
    color: var(--main-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: inline-block;
}

.privacy-link:hover {
    text-decoration: underline;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 600px) {
    .login-wrapper {
        max-width: 100%;
        margin: 20px auto;
        padding: 0 12px;
    }

    .login-card {
        padding: 28px 24px;
    }

    .logo-container {
        gap: 14px;
        margin-bottom: 20px;
    }

    .logo-svg { width: 200px; }

    .campus-tag {
        font-size: 1.1rem;
        padding-left: 14px;
        letter-spacing: 1px;
    }

    .login-card-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .btn-login {
        padding: 14px;
        font-size: 0.95rem;
    }

    .bg-illustration { display: none; }
}

@media (max-width: 400px) {
    .login-wrapper {
        padding: 0 8px;
    }

    .login-card {
        padding: 24px 18px;
    }

    .logo-svg { width: 180px; }
}
