/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Login Container */
.login-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background Video */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Video Overlay */
.login-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Add subtle animated background pattern */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 2;
    pointer-events: none;
}

/* Header */
.header {
    background: white;
    height: 110px;
    display: flex;
    align-items: center;
    padding: 0 80px;
    position: relative;
    z-index: 10;
}

.logo-header {
    width: 150px;
    height: 75px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(100vh - 110px);
    padding: 0 80px;
    position: relative;
    z-index: 5;
}

/* Hero Section */
.hero-section {
    flex: 1;
    padding-right: 100px;
    animation: fadeInLeft 1s ease-out;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #8AC0E7;
    margin-bottom: 24px;
    line-height: 32px;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    color: white;
    line-height: 88px;
    letter-spacing: -0.72px;
    margin-bottom: 32px;
}

.hero-description {
    font-size: 28px;
    font-weight: 500;
    color: #DDE2E7;
    line-height: 36px;
}

/* Login Card */
.login-card {
    width: 557px;
    background: rgba(248, 249, 250, 0.95);
    border-radius: 35px;
    padding: 70px 68px 60px;
    box-shadow: -4px 0px 23.4px 0px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeInRight 1s ease-out;
}

.login-logo {
    width: 151px;
    height: 78px;
    margin: 0 auto 44px;
    display: flex;
    justify-content: center;
}

/* Form Styles */
.login-form {
    width: 100%;
}

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

.form-input {
    width: 100%;
    height: 56px;
    background: #FAFAFA;
    border: 1px solid #ADB5BD;
    border-radius: 8px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 400;
    color: #222529;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #878E95;
}

.form-input:focus {
    outline: none;
    border-color: #0E75C0;
    background: white;
}

/* Checkbox */
.form-checkbox {
    margin: 16px 0 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #ADB5BD;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked ~ .checkbox-custom {
    background: #0E75C0;
    border-color: #0E75C0;
}

.checkbox-input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 16px;
    font-weight: 500;
    color: #878E95;
}

/* Buttons */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.btn {
    width: 100%;
    height: 56px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #0E75C0;
    color: white;
}

.btn-primary:hover {
    background: #0C5A90;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 117, 192, 0.4);
}

.btn-outline {
    background: transparent;
    color: #0E75C0;
    border: 1px solid #0E75C0;
}

.btn-outline:hover {
    background: #0E75C0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 117, 192, 0.4);
}

/* Kakao Login Button */
.btn-kakao {
    background: #FEE500;
    color: #000000;
    gap: 8px;
}

.btn-kakao:hover {
    background: #E6CF00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 229, 0, 0.5);
}

.btn-kakao svg {
    flex-shrink: 0;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #CED4DA;
}

.social-divider span {
    font-size: 14px;
    color: #878E95;
    font-weight: 500;
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: #CED4DA;
    margin: 32px 0 24px;
}

/* Login Help */
.login-help {
    text-align: center;
}

.help-text {
    font-size: 16px;
    font-weight: 600;
    color: #878E95;
    margin-bottom: 8px;
}

.help-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    font-weight: 600;
    color: #0E75C0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-link:hover {
    gap: 6px;
}

.help-icon {
    transition: transform 0.3s ease;
}

.help-link:hover .help-icon {
    transform: translateX(2px);
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1440px) {
    .main-content {
        padding: 0 60px;
    }

    .hero-title {
        font-size: 60px;
        line-height: 72px;
    }

    .hero-description {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 1280px) {
    .hero-section {
        padding-right: 60px;
    }

    .login-card {
        width: 500px;
        padding: 60px 50px 50px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
        height: auto;
        min-height: calc(100vh - 110px);
    }

    .hero-section {
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 60px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 20px;
        line-height: 28px;
    }

    .login-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
        height: 80px;
    }

    .logo-header {
        width: 120px;
        height: 60px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 24px;
    }

    .login-card {
        border-radius: 20px;
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 22px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .form-input {
        height: 48px;
        font-size: 14px;
        padding: 0 16px;
    }

    .btn {
        height: 48px;
        font-size: 14px;
    }
}

/* ============================================
   Height-based responsive (notebook screens)
   ============================================ */

/* Stacked layout (≤1024px): enable vertical scroll */
@media (max-width: 1024px) {
    .login-container {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* Side-by-side layout on short screens (typical notebook: 1366×768) */
@media (max-height: 900px) and (min-width: 1025px) {
    .header {
        height: 80px;
    }

    .logo-header {
        width: 120px;
        height: 60px;
    }

    .main-content {
        height: calc(100vh - 80px);
        padding: 0 50px;
    }

    .hero-section {
        padding-right: 50px;
    }

    .hero-title {
        font-size: 48px;
        line-height: 60px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 20px;
        line-height: 28px;
    }

    .login-card {
        width: 480px;
        padding: 32px 44px 28px;
        border-radius: 24px;
    }

    .login-logo {
        height: 50px;
        margin: 0 auto 20px;
    }

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

    .form-input {
        height: 46px;
    }

    .form-checkbox {
        margin: 10px 0 14px;
    }

    .button-group {
        gap: 10px;
        margin-bottom: 18px;
    }

    .btn {
        height: 46px;
    }

    .social-divider {
        margin: 14px 0;
    }

    .divider {
        margin: 18px 0 14px;
    }

    .help-text {
        font-size: 14px;
    }

    .help-link {
        font-size: 14px;
    }
}

/* Very short screens (768px with browser chrome ≈ 650px viewport) */
@media (max-height: 750px) and (min-width: 1025px) {
    .header {
        height: 60px;
        padding: 0 40px;
    }

    .logo-header {
        width: 100px;
        height: 50px;
    }

    .main-content {
        height: calc(100vh - 60px);
        padding: 0 40px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 12px;
        line-height: 24px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 24px;
    }

    .login-card {
        width: 440px;
        padding: 24px 36px 20px;
        border-radius: 20px;
    }

    .login-logo {
        height: 40px;
        margin: 0 auto 14px;
    }

    .form-input {
        height: 42px;
        font-size: 14px;
    }

    .form-checkbox {
        margin: 6px 0 10px;
    }

    .checkbox-text {
        font-size: 14px;
    }

    .button-group {
        gap: 8px;
        margin-bottom: 12px;
    }

    .btn {
        height: 42px;
        font-size: 14px;
    }

    .social-divider {
        margin: 10px 0;
    }

    .social-divider span {
        font-size: 12px;
    }

    .divider {
        margin: 12px 0 10px;
    }
}