* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
    -webkit-overflow-scrolling: touch;
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.snowflake {
    position: fixed;
    top: -10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    animation: snowfall linear forwards;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../images/login_bg.jpg') no-repeat center center;
    background-size: cover;
}

.login-box {
    position: relative;
    width: 480px;
    height: 100vh;
    padding: 0;
    background: rgb(0 89 111 / 0%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 50px;
    padding: 0;
    width: 100%;
}

.logo img {
    width: 400px;
    height: 300px;
    object-fit: contain;
    transition: all 0.5s ease;
    animation: breathe 3s infinite ease-in-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logo img:hover {
    transform: rotate3d(0, 1, 0, 15deg) scale(1.05);
    filter: brightness(1.2);
}

form {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    border: none;
    border-bottom: 2px solid #fff;
    outline: none;
    background: transparent;
}

.input-group label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 900;
    pointer-events: none;
    transition: 0.5s;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    left: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 간결한 로그인 버튼 스타일 */
.login-btn {
    width: 60%;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 간결한 회원가입 버튼 스타일 */
.register-btn {
    width: 60%;
    padding: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-left: auto;
    margin-right: auto;
}

.register-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 간결한 다운로드 버튼 컨테이너 */
.download-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 60%;
    margin: 10px auto 0;
    padding: 0;
}

/* 간결한 다운로드 버튼 스타일 */
.download-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    backdrop-filter: blur(5px);
}

.download-btn span:first-child {
    font-size: 13px;
    font-weight: 400;
}

.download-btn span:last-child {
    font-size: 11px;
    opacity: 0.7;
}

.chrome-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.teamviewer-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.register-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(17, 24, 39, 0.98));
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    display: none;
    z-index: 1100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.register-form.show {
    display: block;
}

#loginForm.hide {
    display: none;
}

.register-form h2 {
    text-align: center;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.register-desc {
    text-align: center;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 12px;
}

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

.reg-group label {
    display: block;
    margin-bottom: 4px;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
}

.reg-group input,
.reg-group select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    font-size: 13px;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.reg-group input:focus,
.reg-group select:focus {
    border-color: #60a5fa;
    outline: none;
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.id-check {
    display: flex;
    gap: 8px;
}

.id-check input {
    flex: 1;
}

.check-btn {
    padding: 8px 15px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.check-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.hint {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 4px;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-input input {
    width: 70px;
}

.phone-input input:first-child {
    background: rgba(255, 255, 255, 0.05);
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.submit-btn,
.cancel-btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

.submit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.cancel-btn {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
    transform: translateY(-2px);
    background: rgba(96, 165, 250, 0.1);
}

.reg-group select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 5px;
    font-size: 13px;
    color: #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8L9.5 4.5' stroke='%2360a5fa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.reg-group select:hover {
    border-color: #60a5fa;
    background-color: rgba(30, 41, 59, 0.7);
}

.reg-group select:focus {
    border-color: #60a5fa;
    outline: none;
    background-color: rgba(30, 41, 59, 0.7);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.reg-group select option {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 10px;
    font-size: 13px;
}

.reg-group select option:hover,
.reg-group select option:focus,
.reg-group select option:active,
.reg-group select option:checked {
    background-color: #3b82f6;
    color: white;
}

@keyframes breathe {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }
    50% {
        filter: brightness(1.1);
        transform: scale(1.02);
    }
    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .login-box {
        width: 100%;
        height: 100vh;
        padding: 20px;
    }

    .logo img {
        width: 280px;
        height: 200px;
    }

    form {
        padding: 0 20px;
    }

    .login-btn,
    .register-btn {
        width: 80%;
    }

    .register-form {
        width: 95%;
        padding: 12px;
        max-height: none;
        overflow-y: visible;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.95);
    }

    .register-form.show {
        display: block;
    }

    .register-form h2 {
        margin-bottom: 5px;
    }

    .register-desc {
        margin-bottom: 10px;
        line-height: 1.3;
    }

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

    .reg-group input,
    .reg-group select {
        padding: 6px 8px;
    }

    .phone-input {
        gap: 4px;
    }

    .phone-input input {
        padding: 6px 4px;
    }

    .form-buttons {
        gap: 6px;
        margin-top: 10px;
    }

    .submit-btn,
    .cancel-btn {
        padding: 8px;
    }

    .download-buttons {
        width: 80%;
        gap: 6px;
    }

    .download-btn {
        font-size: 12px;
        padding: 7px 10px;
    }

    .download-btn span:first-child {
        font-size: 12px;
    }

    .download-btn span:last-child {
        font-size: 10px;
    }
}

@media screen and (max-width: 480px) {
    .logo img {
        width: 240px;
        height: 160px;
    }

    .input-group input {
        font-size: 14px;
    }

    .input-group label {
        font-size: 14px;
    }

    .login-btn,
    .register-btn {
        width: 90%;
        font-size: 14px;
    }

    .register-form h2 {
        font-size: 18px;
    }

    .reg-group label {
        font-size: 12px;
    }

    .reg-group input,
    .reg-group select {
        font-size: 12px;
        padding: 8px;
    }

    .hint {
        font-size: 10px;
    }

    .register-form {
        width: 92%;
        padding: 10px;
        transform: translate(-50%, -50%) scale(0.92);
    }

    .register-desc {
        font-size: 10px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .reg-group {
        margin-bottom: 6px;
    }

    .reg-group label {
        margin-bottom: 2px;
    }

    .reg-group input,
    .reg-group select {
        padding: 5px 6px;
    }

    .form-buttons {
        margin-top: 8px;
    }

    .submit-btn,
    .cancel-btn {
        padding: 7px;
    }

    .hint {
        margin-top: 2px;
    }

    .download-buttons {
        width: 90%;
        gap: 5px;
    }

    .download-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .download-btn span:first-child {
        font-size: 11px;
    }

    .download-btn span:last-child {
        font-size: 9px;
    }
}

@media (hover: none) {
    .login-btn:active,
    .register-btn:active {
        transform: scale(0.98);
    }

    .submit-btn:active,
    .cancel-btn:active {
        opacity: 0.8;
    }
}
