/* 
======================================================================
  EXCLUSIVE KOREAN STANDARD CSS FOR AUTH PAGES
  Prefix: kr-login-*
======================================================================
*/
body {
    margin: 0; padding: 0;
    background-color: #F9FAFB;
    min-width: auto !important;
    overflow-x: hidden;
}
.kr-login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    font-family: 'Wanted Sans Variable', 'Wanted Sans', -apple-system, system-ui, sans-serif !important;
}

/* LEFT SIDE - FORM */
.kr-login-left {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #F4F6F8;
    padding: 0;
    position: relative;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
    z-index: 2;
}
@media (max-width: 992px) {
    .kr-login-wrapper {
        flex-direction: column;
        align-items: center; 
        justify-content: flex-start;
        background: #F9FAFB;
        padding: 0;
        box-sizing: border-box;
        height: auto;
        min-height: 100vh;
        position: relative;
    }
    .kr-login-left { 
        flex: none; 
        width: 100%; 
        max-width: 100%; 
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        box-shadow: none;
        padding: 20px;
        box-sizing: border-box;
    }
    .kr-login-form-container {
        width: 100%;
        max-width: 480px;
        padding: 40px 30px;
    }
}

.kr-login-form-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.03);
    padding: 60px 40px;
    box-sizing: border-box;
}

.kr-login-logo {
    display: flex; 
    margin-bottom: 50px; 
    justify-content: center;
}
.kr-login-logo img {
    height: 48px; 
    object-fit: contain;
}

/* Back Button */
.kr-back-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: #F2F4F6;
    cursor: pointer; position: absolute; left: 35px; top: 40px;
    transition: all 0.2s;
}
.kr-back-btn:hover { background: #E5E8EB; }
.kr-back-btn svg { width: 20px; height: 20px; stroke: #4E5968; }

.kr-auth-header { margin-bottom: 40px; text-align: left; padding-top: 50px;}
.kr-auth-title { font-size: 28px; font-weight: 700; color: #191F28; margin: 0 0 12px 0; }
.kr-auth-desc { font-size: 15px; color: #8B95A1; margin: 0; line-height: 1.5;}


.kr-form-group {
    margin-bottom: 24px;
    position: relative;
}
.kr-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4E5968;
    margin-bottom: 8px;
}
.kr-input {
    width: 100%;
    height: 46px;
    border: 1px solid #E5E8EB;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    color: #191F28;
    background: #F9FAFB;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-weight: 500;
}
.kr-input::placeholder {
    color: #B0B8C1;
    font-weight: 400;
}
.kr-input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--main-color);
}

/* Visibility toggle */
.kr-toggle-pw {
    position: absolute;
    right: 16px;
    bottom: 17px;
    background: none; border: none; cursor: pointer; padding: 0; display:flex;
}

.kr-timer {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: #F04438; font-weight: 600; font-size: 15px;
}

.kr-resend-row {
    text-align: center; font-size: 14px; color: #8B95A1; margin-bottom: 24px; margin-top: -8px;
}
.kr-resend-link {
    color: #3182F6; font-weight: 600; cursor: pointer; margin-left: 4px; text-decoration: none;
}
.kr-resend-link:hover { text-decoration: underline; }

.kr-form-note {
    font-size: 13px; color: #8B95A1; line-height: 1.5; margin-bottom: 24px;
}


/* Utilities */
.kr-util-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 32px;
    margin-top: -8px;
}
.kr-link {
    font-size: 14px;
    color: var(--main-color);
    text-decoration: none;
    cursor: pointer;
}

/* Buttons */
.kr-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none;
    box-sizing: border-box;
}
.kr-btn-primary {
    background: var(--main-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(30, 44, 82, 0.2);
}
.kr-btn-primary:hover { background: var(--main-color); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 44, 82, 0.3); }

.kr-btn-ghost {
    background: var(--color-sidebar);
    color: #ffffff;
}
.kr-btn-ghost:hover { background: var(--color-sidebar); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30, 44, 82, 0.3); }

.kr-btn-ghost-sub {
    background: #FFFFFF;
    color: var(--main-color);
}
.kr-btn-ghost-sub:hover { background: #FFFFFF; transform: translateY(-1px); }

/* Language Switcher Float */
.kr-lang-wrapper {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 9999;
}
@media (max-width: 992px) {
    .kr-lang-wrapper { 
        position: fixed;
        top: 15px; 
        right: 15px; 
    }
}
.kr-lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #E5E8EB;
    border-radius: 30px;
    font-size: 14px;
    color: #4E5968;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.2s;
    user-select: none;
}
.kr-lang-trigger:hover { background: #F9FAFB; }
.kr-lang-trigger img,
.kr-lang-flag {
    width: 22px;
    height: 22px;
    min-width: 22px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}
.kr-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #E2E2E2;
    border-radius: 8px;
    box-shadow: 2px 1px 10px 0px rgba(0, 0, 0, 0.1);
    width: 190px;
    display: none;
    padding: 8px 10px;
    box-sizing: border-box;
    z-index: 10000;
}
.kr-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 28px 6px 8px;
    margin-bottom: 1px;
    border-radius: 6px;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
    transition: all 0.15s ease;
}
.kr-lang-option img {
    width: 22px;
    height: 22px;
    min-width: 22px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.kr-lang-option:hover,
.kr-lang-option.selected {
    background-color: #45496F;
    color: #fff;
}
.kr-lang-option.selected::after {
    content: '';
    width: 10px;
    height: 5px;
    position: absolute;
    top: 50%;
    right: 10px;
    margin-top: -4px;
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}
.kr-caret {
    border-style: solid;
    border-width: 5px 4px 0 4px;
    border-color: #8B95A1 transparent transparent transparent;
    margin-left: 4px;
}

/* RIGHT SIDE - SLIDER */
.kr-login-right {
    flex: 0 0 55%;
    max-width: 55%;
    position: relative;
    background: linear-gradient(135deg, var(--color-sidebar) 0%, #151f3b 100%);
    overflow: hidden;
}
@media (max-width: 992px) {
    .kr-login-right { 
        display: block; 
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 100vh; 
        min-height: 600px;
    }
}

.swiper { width: 100%; height: 100%; }
.swiper-slide { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.swiper-slide img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; z-index:1; pointer-events: none;}
.kr-carousel-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 35px 45px;
    background: rgba(0, 0, 0, 0.45); 
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    width: 80%;
    max-width: 450px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    box-sizing: border-box;
}
.kr-carousel-content h2 { font-size: 32px; font-weight: 700; margin: 0 0 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.4); line-height:1.4; }
.kr-carousel-content p { font-size: 16px; line-height: 1.6; color: #F9FAFB; margin: 0; opacity: 0.9;}
.kr-pos-top { top: 8vh; }
.kr-pos-bottom { bottom: 10vh; }
.swiper-pagination { bottom: 40px !important; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: rgba(255,255,255,0.4); opacity: 1; transition: all 0.3s;}
.swiper-pagination-bullet-active { background: #fff; transform: scale(1.4); }
