/* PAMAS ENGLISH - LOGIN PAGE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family:
        Pretendard,
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        Arial,
        sans-serif;
    background: #eef4f7;
    color: #162b4d;
}

button,
input {
    font: inherit;
}

.login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(4, 30, 68, 0.12) 0%,
            rgba(4, 30, 68, 0.03) 45%,
            rgba(4, 30, 68, 0.12) 100%
        ),
        url("../images/pamas_login_bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.02),
            rgba(0, 31, 66, 0.05)
        );
    pointer-events: none;
}

.brand {
    position: absolute;
    top: 32px;
    left: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 31, 70, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand-logo img {
    display: block;
    max-height: 38px;
    max-width: 210px;
    object-fit: contain;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1180px;
    display: flex;
    justify-content: flex-end;
    padding: 40px;
}

.login-page .login-card {
    width: 420px;
    max-width: none;
    padding: 38px 38px 30px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    box-shadow:
        0 25px 70px rgba(3, 34, 72, 0.20),
        0 4px 18px rgba(3, 34, 72, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.login-header {
    margin-bottom: 30px;
}

.login-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #2c8a57;
}

.login-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf6d;
    box-shadow: 0 0 0 5px rgba(76, 175, 109, 0.12);
}

.login-header h1 {
    font-size: 29px;
    line-height: 1.25;
    letter-spacing: -1.2px;
    color: #12366b;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 14px;
    line-height: 1.65;
    color: #718096;
}

.login-header strong {
    color: #334e72;
}

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

.login-page .form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334e68;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8ca0b6;
    pointer-events: none;
}

.login-page .form-control {
    width: 100%;
    height: 54px;
    padding: 0 48px 0 48px;
    border: 1px solid #dbe4ec;
    border-radius: 14px;
    outline: none;
    background: rgba(248, 250, 252, 0.95);
    font-size: 15px;
    color: #183153;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.login-page .form-control::placeholder {
    color: #a7b3c0;
}

.login-page .form-control:focus {
    background: #fff;
    border-color: #315fa3;
    box-shadow: 0 0 0 4px rgba(30, 75, 139, 0.10);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8293a7;
    cursor: pointer;
}

.password-toggle:hover {
    background: #edf2f7;
    color: #12366b;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #61758a;
    cursor: pointer;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #12366b;
}

.find-link {
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #526d8c;
    cursor: pointer;
    text-decoration: none;
}

.find-link:hover {
    color: #12366b;
}

.login-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #163f7a, #0d2f67);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(18, 54, 107, 0.25);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(18, 54, 107, 0.32);
}

.login-button:active {
    transform: translateY(0);
}

.login-error {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff1f1;
    border: 1px solid #ffd6d6;
    font-size: 13px;
    line-height: 1.5;
    color: #c33b3b;
}

.login-success {
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #effaf3;
    border: 1px solid #ccebd6;
    font-size: 13px;
    line-height: 1.5;
    color: #348458;
}

.login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
    font-size: 13px;
    color: #75869a;
}

.login-links a {
    color: #65788e;
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover {
    color: #12366b;
}

.growth-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    font-size: 12px;
    color: #8292a5;
}

.leaf {
    color: #4b9b63;
    font-size: 17px;
}

.login-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 15px;
    z-index: 5;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .login-page {
        background-position: 42% center;
    }

    .login-container {
        max-width: none;
        padding: 30px;
    }

    .login-page .login-card {
        width: 390px;
    }

    .brand {
        top: 24px;
        left: 28px;
    }
}

@media (max-width: 700px) {
    .login-page {
        align-items: flex-end;
        background-position: center top;
    }

    .login-page::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0.02) 0%,
                rgba(255, 255, 255, 0.05) 35%,
                rgba(240, 246, 249, 0.80) 62%,
                rgba(240, 246, 249, 1) 78%
            );
        pointer-events: none;
    }

    .brand {
        top: 18px;
        left: 18px;
        z-index: 10;
    }

    .brand-logo {
        height: 48px;
        padding: 7px 13px;
        border-radius: 13px;
    }

    .brand-logo img {
        max-height: 30px;
        max-width: 170px;
    }

    .login-container {
        z-index: 20;
        align-items: flex-end;
        padding: 150px 15px 25px;
    }

    .login-page .login-card {
        width: 100%;
        padding: 28px 22px 24px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.94);
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-header h1 {
        font-size: 25px;
    }

    .login-footer {
        display: none;
    }
}

@media (max-width: 380px) {
    .login-page .login-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-options {
        align-items: flex-start;
        gap: 10px;
    }

    .login-header h1 {
        font-size: 23px;
    }
}
