@charset "utf-8";

/* Login Page Wrapper */
.login-page-wrapper {
    width: 100%;
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
    background-image: url('../images/login/login-bg-light.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff; /* Fallback */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    padding: 100px 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Add a subtle overlay for better text readability if needed */
.login-page-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

/* Login Container */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Title */
.login-title {
    font-size: 56px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.04em;
    font-family: 'Montserrat', 'Pretendard', sans-serif;
    text-align: center;
    text-transform: uppercase;
}

/* Login Box (Glassmorphism or clean card) */
.login-box {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    padding: 40px;
    /*
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    */
}

/* Input + Button Wrapper */
.input-btn-wrap {
    display: grid;
    grid-template-columns: 7fr 3fr;
    grid-template-rows: repeat(2, 56px);
    grid-template-areas: 
        "id login"
        "pw login";
    gap: 12px;
    width: 100%;
}

#userId { grid-area: id; }
#userPw { grid-area: pw; }
.btn-login { 
    grid-area: login; 
    height: 100% !important; 
    margin: 0;
}

/* Input Fields common */
.login-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    background-color: #f7f7fa;
    border: 1px solid #e2e2e8;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input:focus {
    background-color: #ffffff;
    border-color: #442c93;
    box-shadow: 0 0 0 4px rgba(68, 44, 147, 0.05);
    outline: none;
}

.login-input::placeholder {
    color: #a1a1b5;
}

/* Login Button */
.btn-login {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border: 2px solid #442c93;
    border-radius: 12px;
    color: #442c93;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.btn-login:hover {
    background-color: #442c93;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(68, 44, 147, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

/* Links */
.login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 10px;
}

.btn-link {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: #442c93;
}

.link-divider {
    width: 1px;
    height: 12px;
    background-color: #dddddd;
}

/* Mobile Adjustments */
/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .login-page-wrapper {
        padding: 60px 20px;
    }
    
    .login-title {
        font-size: 40px;
    }
    
    .login-container {
        gap: 32px;
        padding: 0 10px;
    }
    
    .login-box {
        padding: 0; /* Removing padding to allow more space on mobile */
    }

    .input-btn-wrap {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .login-input {
        width: 100%;
        height: 56px;
    }

    .btn-login {
        width: 100%;
        height: 56px !important;
        grid-area: auto; /* Reset grid area if needed, though flex ignores it */
    }
    
    .login-links {
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    
    .btn-link {
        font-size: 14px;
    }
}
