:root {
    --login-navy: #1e3a5f;
    --login-navy-dark: #0f2440;
    --login-blue: #2563eb;
    --login-blue-light: #3b82f6;
    --login-blue-hover: #1d4ed8;
    --login-blue-bg: #4b8af0;
    --login-gold: #b8860b;
    --login-gold-bg: #fef9ee;
    --login-gold-border: #f0d68a;
    --login-gray-50: #f8fafc;
    --login-gray-100: #f1f5f9;
    --login-gray-200: #e2e8f0;
    --login-gray-400: #94a3b8;
    --login-gray-500: #64748b;
    --login-gray-700: #334155;
    --login-gray-900: #0f172a;
    --login-white: #ffffff;
    --login-radius: 12px;
    --login-radius-lg: 20px;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
.login-page {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    background: var(--login-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    overscroll-behavior: none;
    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        sans-serif;
}
.login-container {
    width: 100%;
    max-width: 900px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    background: var(--login-white);
    border-radius: var(--login-radius-lg);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 20px 50px -12px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    animation: loginSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-form-col {
    padding: 40px 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-header {
    margin-bottom: 32px;
}
.login-header-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.login-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--login-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.login-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.login-logo-icon {
    font-size: 22px;
    line-height: 1;
}
.login-brand-text {
    display: flex;
    flex-direction: column;
}
.login-brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--login-gray-900);
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.login-brand-school {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--login-gray-500);
    letter-spacing: 0.2px;
}
.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--login-gold-bg);
    border: 1px solid var(--login-gold-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--login-gold);
    letter-spacing: 0.2px;
    width: fit-content;
}
.login-form-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--login-gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    text-align: center;
}
.login-form-subtitle {
    font-size: 0.85rem;
    color: var(--login-gray-500);
    margin-bottom: 28px;
    text-align: center;
}
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--login-radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: #991b1b;
    line-height: 1.45;
    animation: loginAlertFade 0.3s ease-out;
}
.login-alert svg {
    flex-shrink: 0;
    color: #dc2626;
    margin-top: 1px;
}
@keyframes loginAlertFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.login-form-area .fi-fo-field-wrp {
    margin-bottom: 18px;
}
.login-form-area .fi-fo-field-wrp-label,
.login-form-area .fi-fo-field-wrp-label label,
.login-form-area label,
.login-form-area .fi-fo-field-wrp > label,
.login-form-area span[class*="label"],
.login-form-area .fi-fo-field-wrp-label span {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.login-form-area .fi-input-wrp {
    border: 1.5px solid var(--login-gray-200) !important;
    border-radius: var(--login-radius) !important;
    background: var(--login-white) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    transition:
        border-color 0.2s,
        box-shadow 0.2s !important;
    ring: none !important;
    --tw-ring-shadow: none !important;
}
.login-form-area .fi-input-wrp:focus-within {
    border-color: var(--login-blue) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}
.login-form-area input[type="text"],
.login-form-area input[type="password"],
.login-form-area input[type="number"],
.login-form-area .fi-input {
    width: 100% !important;
    height: 46px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 14px !important;
    font-size: 0.9rem !important;
    color: var(--login-gray-900) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}
.login-form-area input:focus,
.login-form-area .fi-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.login-form-area .fi-input-wrp-suffix {
    display: flex !important;
    align-items: center !important;
    padding-right: 12px !important;
}
.login-form-area .fi-input-wrp-suffix .fi-icon-btn {
    color: var(--login-gray-400) !important;
    transition: color 0.15s !important;
}
.login-form-area .fi-input-wrp-suffix .fi-icon-btn:hover {
    color: var(--login-gray-700) !important;
}
.login-form-area input::placeholder {
    color: var(--login-gray-400) !important;
    font-weight: 400 !important;
}
.login-form-area input[type="number"]::-webkit-outer-spin-button,
.login-form-area input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}
.login-form-area input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
.login-form-area .fi-fo-field-wrp-helper-text,
.login-form-area .fi-fo-field-wrp-helper-text p,
.login-form-area .fi-fo-field-wrp-helper-text span {
    font-size: 0.7rem !important;
    color: #64748b !important;
    margin-top: 4px !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.login-form-area .fi-fo-field-wrp-error-message {
    font-size: 0.75rem !important;
    color: #dc2626 !important;
    margin-top: 4px !important;
}
.login-form-area .fi-checkbox-input {
    accent-color: var(--login-blue) !important;
    width: 16px !important;
    height: 16px !important;
}
.login-form-area button[type="submit"],
.login-form-area .fi-btn-primary {
    width: 100% !important;
    height: 48px !important;
    min-height: 44px !important;
    background: var(--login-blue) !important;
    color: var(--login-white) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: var(--login-radius) !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3) !important;
    transition:
        background 0.15s,
        box-shadow 0.15s,
        transform 0.1s !important;
    margin-top: 6px !important;
}
.login-form-area button[type="submit"]:hover,
.login-form-area .fi-btn-primary:hover {
    background: var(--login-blue-hover) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px) !important;
}
.login-form-area button[type="submit"]:active,
.login-form-area .fi-btn-primary:active {
    transform: translateY(0) !important;
}
.login-form-footer {
    margin-top: auto;
    padding-top: 28px;
    text-align: center;
}
.login-form-footer-copy {
    font-size: 0.72rem;
    color: var(--login-gray-400);
    margin-bottom: 4px;
    text-align: center;
}
.login-form-footer-copy a {
    color: var(--login-gray-400);
    text-decoration: none;
    font-weight: 400;
    transition:
        color 0.15s,
        opacity 0.15s;
}
.login-form-footer-copy a:hover {
    color: var(--login-gray-400);
    opacity: 0.65;
}
.login-form-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.login-form-footer-links a {
    font-size: 0.7rem;
    color: var(--login-gray-400);
    text-decoration: none;
    transition: color 0.15s;
}
.login-form-footer-links a:hover {
    color: var(--login-blue);
}
.login-form-footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--login-gray-200);
}
.login-illust-col {
    background: linear-gradient(160deg, #4b8af0 0%, #2563eb 50%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}
@keyframes floatA {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.04);
    }
}
@keyframes floatB {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(14px) scale(0.97);
    }
}
@keyframes floatC {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(8px, -12px) scale(1.06);
    }
    66% {
        transform: translate(-6px, 8px) scale(0.95);
    }
}
@keyframes twinkle {
    0%,
    100% {
        opacity: 0.15;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.3) rotate(20deg);
    }
}
@keyframes checkFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(8deg);
    }
}
.illust-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    pointer-events: none;
}
.illust-shape--1 {
    width: 200px;
    height: 200px;
    background: var(--login-white);
    top: -40px;
    right: -60px;
    animation: floatA 7s ease-in-out infinite;
}
.illust-shape--2 {
    width: 120px;
    height: 120px;
    background: var(--login-white);
    bottom: 60px;
    left: -40px;
    animation: floatB 9s ease-in-out infinite;
    animation-delay: -3s;
}
.illust-shape--3 {
    width: 80px;
    height: 80px;
    background: var(--login-white);
    top: 40%;
    right: 10%;
    opacity: 0.05;
    animation: floatC 11s ease-in-out infinite;
    animation-delay: -6s;
}
.illust-star {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    color: var(--login-white);
    font-size: 24px;
}
.illust-star--1 {
    top: 12%;
    left: 15%;
    font-size: 28px;
    animation: twinkle 4s ease-in-out infinite;
}
.illust-star--2 {
    bottom: 18%;
    left: 25%;
    font-size: 20px;
    opacity: 0.1;
    animation: twinkle 5.5s ease-in-out infinite;
    animation-delay: -1.5s;
}
.illust-star--3 {
    top: 20%;
    right: 20%;
    font-size: 16px;
    opacity: 0.12;
    animation: twinkle 3.5s ease-in-out infinite;
    animation-delay: -2s;
}
.illust-star--4 {
    bottom: 30%;
    right: 12%;
    font-size: 22px;
    opacity: 0.08;
    animation: twinkle 6s ease-in-out infinite;
    animation-delay: -4s;
}
.illust-check {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.illust-check svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.4);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.illust-check--1 {
    top: 18%;
    right: 14%;
    animation: checkFloat 5s ease-in-out infinite;
}
.illust-check--2 {
    top: 30%;
    right: 8%;
    animation: checkFloat 7s ease-in-out infinite;
    animation-delay: -2.5s;
}
.illust-main {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--login-white);
}
.illust-logo-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.illust-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.illust-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.illust-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    letter-spacing: 0.2px;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}
.illust-religion-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.illust-religion-item {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.2s,
        background 0.2s;
}
.illust-religion-item:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.25);
}
.illust-religion-item svg {
    width: 18px;
    height: 18px;
    color: var(--login-white);
    fill: var(--login-white);
}
.illust-bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 0;
}
.illust-bottom-wave svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
    .login-container {
        grid-template-columns: 1fr 1fr;
    }
    .login-form-col {
        padding: 40px 40px 32px;
    }
}
@media (min-width: 768px) and(max-width:1023px) {
    .login-container {
        max-width: 760px;
    }
    .login-form-col {
        padding: 36px 32px 28px;
    }
    .illust-logo-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 14px;
    }
    .illust-title {
        font-size: 1.35rem;
    }
    .illust-subtitle {
        font-size: 0.82rem;
    }
    .illust-religion-icons {
        gap: 10px;
        margin-top: 16px;
    }
    .illust-religion-item {
        width: 28px;
        height: 28px;
    }
    .illust-religion-item svg {
        width: 16px;
        height: 16px;
    }
}
@media (max-width: 767px) {
    .login-page {
        padding: 0;
        align-items: flex-start;
        padding-top: 0;
        height: auto;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .login-container {
        grid-template-columns: 1fr;
        border-radius: 0;
        max-width: 100%;
        min-height: 0;
        max-height: none;
    }
    .login-illust-col {
        order: -1;
        min-height: 0;
        padding: 24px 24px 20px;
    }
    .illust-logo-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
        padding: 4px;
    }
    .illust-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }
    .illust-subtitle {
        font-size: 0.75rem;
    }
    .illust-religion-icons {
        gap: 8px;
        margin-top: 10px;
    }
    .illust-religion-item {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }
    .illust-religion-item svg {
        width: 14px;
        height: 14px;
    }
    .illust-shape--1 {
        width: 120px;
        height: 120px;
        top: -30px;
        right: -30px;
    }
    .illust-shape--2 {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: -20px;
    }
    .illust-shape--3 {
        display: none;
    }
    .illust-star {
        display: none;
    }
    .illust-check {
        display: none;
    }
    .illust-bottom-wave {
        height: 30px;
    }
    .login-form-col {
        padding: 24px 22px 20px;
    }
    .login-header-top {
        gap: 10px;
    }
    .login-logo {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }
    .login-logo img {
        width: 28px;
        height: 28px;
    }
    .login-logo-icon {
        font-size: 18px;
    }
    .login-brand-name {
        font-size: 1.05rem;
    }
    .login-form-title {
        font-size: 1.3rem;
    }
    .login-form-subtitle {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    .login-form-footer {
        padding-top: 16px;
    }
}
@media (max-width: 380px) {
    .login-form-col {
        padding: 20px 16px 16px;
    }
    .login-form-title {
        font-size: 1.15rem;
    }
    .login-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    .illust-logo-icon {
        width: 48px;
        height: 48px;
    }
    .illust-title {
        font-size: 1rem;
    }
    .illust-subtitle {
        font-size: 0.7rem;
    }
    .login-illust-col {
        padding: 20px 20px 16px;
    }
}
.login-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-popup-card {
    background: var(--login-white);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 20px 60px -12px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}
.login-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #fef2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-popup-icon svg {
    width: 32px;
    height: 32px;
    color: #ef4444;
}
.login-popup-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--login-gray-900);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.login-popup-message {
    font-size: 0.85rem;
    color: var(--login-gray-500);
    line-height: 1.6;
    margin-bottom: 24px;
}
.login-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: var(--login-blue);
    color: var(--login-white);
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: var(--login-radius);
    cursor: pointer;
    transition:
        background 0.15s,
        box-shadow 0.15s,
        transform 0.1s;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}
.login-popup-btn:hover {
    background: var(--login-blue-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}
.login-popup-btn:active {
    transform: translateY(0);
}
@media (max-width: 480px) {
    .login-popup-card {
        padding: 28px 24px 22px;
        border-radius: 16px;
    }
    .login-popup-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }
    .login-popup-icon svg {
        width: 26px;
        height: 26px;
    }
    .login-popup-title {
        font-size: 1.05rem;
    }
    .login-popup-message {
        font-size: 0.8rem;
    }
}
[x-cloak] {
    display: none !important;
}
.popup-enter {
    transition: opacity 0.2s ease-out;
}
.popup-enter-start {
    opacity: 0;
}
.popup-enter-end {
    opacity: 1;
}
.popup-leave {
    transition: opacity 0.15s ease-in;
}
.popup-leave-start {
    opacity: 1;
}
.popup-leave-end {
    opacity: 0;
}
.login-popup-card {
    animation: popupCardIn 0.25s ease-out both;
}
@keyframes popupCardIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
