/* video-login.css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Noto Sans KR', sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(247, 247, 249, 0.92) 100%);
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
            circle at 20% 50%,
            rgba(120, 119, 198, 0.1) 0%,
            transparent 50%
    ),
    radial-gradient(
            circle at 80% 80%,
            rgba(255, 119, 168, 0.1) 0%,
            transparent 50%
    ),
    radial-gradient(
            circle at 40% 20%,
            rgba(255, 206, 84, 0.1) 0%,
            transparent 50%
    );
    z-index: -1;
}

.header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    height: 52px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 30px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-link {
    font-size: 14px;
    color: #06c;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    font-weight: 400;
}

.header-link:hover {
    background: rgba(0, 102, 204, 0.08);
}

.logo-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 60px;
    text-align: center;
}

.logo-placeholder {
    width: 200px;
    height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder.small {
    width: 140px;
    height: 35px;
}

.login-page {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.login-title {
    font-size: 48px;
    font-weight: 600;
    margin-top: 40px;
    color: #1d1d1f;
    letter-spacing: -0.003em;
}

.login-subtitle {
    font-size: 21px;
    margin-top: 16px;
    color: #86868b;
    font-weight: 400;
}

.login-form-wrapper {
    margin-top: 60px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper {
    max-width: 460px;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper.expanded {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.input-group {
    max-width: 460px;
    margin: 0 auto;
    position: relative;
}

#emailGroup {
    margin-bottom: 0;
    transition: margin 0.3s ease;
}

#emailGroup.email-active {
    margin-bottom: 12px;
}

.password-group {
    display: none;
    opacity: 0;
    margin: 0 auto 16px;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-group.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.4s ease;
}

.login-button-wrapper {
    display: none;
    opacity: 0;
    max-width: 460px;
    margin: 0 auto;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-button-wrapper.show {
    display: block;
    opacity: 1;
    transform: scale(1);
    margin: 20px auto 0;
    animation: fadeIn 0.5s ease;
}

.login-submit-button {
    width: 100%;
    height: 56px;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 28px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.login-submit-button:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.input-group input {
    width: 100%;
    height: 56px;
    font-size: 17px;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    padding: 20px 50px 4px 20px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #1d1d1f;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.input-group input:focus {
    border-color: #0071e3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.input-label {
    position: absolute;
    pointer-events: none;
    color: #5f6368;
    transition: all 0.3s ease;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 5px;
    font-size: 17px;
}

.input-group input:focus ~ .input-label,
.input-group input:not(:placeholder-shown) ~ .input-label {
    top: -8px;
    left: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    background: linear-gradient(to bottom,
    transparent 0%,
    transparent 40%,
    white 40%,
    white 60%,
    transparent 60%,
    transparent 100%);
    padding: 0 8px;
    transform: translateY(0);
}

.login-links {
    margin: 40px auto 200px;
    text-align: center;
}

.reset-link {
    font-size: 14px;
    text-decoration: none;
    color: #06c;
    transition: all 0.3s;
}

.reset-link:hover {
    text-decoration: underline;
}

.message-box {
    position: fixed;
    top: 20px;
    right: -400px;
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.message-box.show {
    right: 20px;
}

.message-box.error {
    background: rgba(255, 59, 48, 0.95);
    color: white;
}

.message-box.success {
    background: rgba(52, 199, 89, 0.95);
    color: white;
}

.message-box.warning {
    background: rgba(255, 149, 0, 0.95);
    color: white;
}

.message-box.info {
    background: rgba(0, 122, 255, 0.95);
    color: white;
}

.message-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.message-content {
    flex: 1;
}

.message-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.message-text {
    font-size: 13px;
    line-height: 1.5;
    word-break: keep-all;
}

.message-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.message-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid rgba(0, 113, 227, 0.2);
    border-top-color: #0071e3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .header-container,
    .login-page,
    .logo-section {
        padding: 0 20px;
    }

    .logo-placeholder {
        width: 160px;
        height: 40px;
    }

    .logo-placeholder.small {
        width: 120px;
        height: 30px;
    }

    .login-title {
        font-size: 36px;
    }

    .input-wrapper,
    .input-group,
    .login-button-wrapper {
        max-width: 100%;
    }

    .message-box {
        width: calc(100% - 40px);
        right: -100%;
    }

    .message-box.show {
        right: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .logo-placeholder {
        width: 140px;
        height: 35px;
    }

    .logo-placeholder.small {
        width: 100px;
        height: 25px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 18px;
    }

    .input-group input {
        height: 50px;
        font-size: 16px;
    }

    .login-submit-button {
        height: 50px;
        font-size: 16px;
    }
}