﻿@font-face {
    font-family: 'Pretendard';
    src: url('/fonts/Pretendard-Regular.woff2') format('woff2'), url('/fonts/Pretendard-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-family: 'Pretendard Variable', Pretendard;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard Variable', Pretendard;
    box-sizing: border-box;
    overflow-x: auto;
}

body {
    background: #F4F7FC;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    min-width: 850px;
}

.login-container {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 450px;
    min-width: 450px;
    height: auto;
    overflow: hidden;
}

.login-image {
    width: 100%;
    min-width: auto;
    height: 200px;
    background: linear-gradient(135deg, #eaf0f9 0%, #d6e7f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .login-image img {
        width: auto;
        height: 60%;
        object-fit: contain;
    }

.login-form {
    flex: 1;
    padding: 50px 60px 40px 60px;
    text-align: center;
    background: white;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
    position: relative;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 2px solid #F2F2F2;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #F2F2F2;
}

    .form-control:focus {
        outline: none;
        border-color: #2980FF;
        background-color: white; /* 포커스 시 배경을 흰색으로 */
    }

    .form-control.input-validation-error {
        border-color: #dc3545;
    }

.field-validation-error {
    color: #dc3545;
    font-size: 12px;
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    padding: 2px 4px;
    border-radius: 3px;
    display: none;
}

    .field-validation-error:not(:empty) {
        display: block;
    }

.form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    justify-content: flex-end;
}

.form-check {
    display: flex;
    align-items: center;
    text-align: left;
}

.form-check-input {
    margin-right: 8px;
    margin-top: 0;
}

.form-check-label {
    color: #666;
    font-size: 12px;
}

.forgot-links {
    display: flex;
    gap: 10px;
}

    .forgot-links a {
        color: #666;
        text-decoration: none;
        font-size: 12px;
    }

        .forgot-links a:hover {
            text-decoration: underline;
        }

.btn-container {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px 0;
}

.btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login {
    background: #e0e0e0;
    color: black;
}

    .btn-login:hover {
        background: #D9D9D9;
    }

.btn-signup {
    background: #2980FF;
    color: white;
}

    .btn-signup:hover {
        background: #5799F9;
    }

.btn-signin-new {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2980FF;
    color: white;
}

    .btn-signin-new:hover {
        background: #5799F9;
    }

.signup-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.signup-link {
    color: #2980FF;
    text-decoration: none;
}

    .signup-link:hover {
        text-decoration: underline;
    }

.divider {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

.social-login {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow: visible;
}

.social-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    background: #F2F2F2;
}

    .social-btn:hover {
        transform: translateY(-2px);
    }

    .social-btn img {
        height: 16px; /* 높이만 지정 */
        width: auto; /* 너비는 자동으로 비율에 맞게 조정 */
        object-fit: contain;
    }

.btn-naver {
    background: #03C75A;
    color: white;
}

.btn-kakao {
    background: #FEE500;
    color: #191919;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

.copyright {
    color: #666;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}