@charset "utf-8";

/* Login Page Wrapper */
/* Use a specific wrapper class instead of targeting body to avoid affecting Header/Footer */
.login-page-wrapper {
    width: 100%;
    /* We want full screen height min. 
       Header is fixed (~90px or 130px). 
       We need to ensure this wrapper takes up at least the visible area minus header/footer if possible, 
       or just a large min-height to look good. 
       Design says 1920x1080 background. 
    */
    min-height: 100vh; 
    background-image: url('../images/common/bg_login.png'); /* Placeholder */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* Ensure it handles the fixed header overlapping */
    padding-top: 130px; /* Approx header height, adjust if needed */
    padding-bottom: 50px;
    box-sizing: border-box;
}

/* Container 01 */
.login-container {
    width: 100%;
    max-width: 1440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

/* Login Text */
.login-title {
    font-size: 65.5px;
    font-weight: 700; /* Bold */
    color: #000000;
    margin: 0;
    line-height: 1.2;
    font-family: 'NanumSquare', sans-serif; /* Ensure font matches design */
}

/* Container 02 */
.login-box {
    display: flex;
    flex-direction: column;
    gap: 33px;
    width: 100%;
    max-width: 480px; /* Increased to accommodate inputs + button side-by-side if needed */
    align-items: center;
}

/* Container 03 - Input + Button Wrapper */
/* Based on design analysis: Inputs are stacked, Button is likely next to them or below. 
   "Container 03: Container 05 (Inputs), Button". 
   If they are in a flex row, the button would be on the right. 
   Let's assume row for now based on typical "Korean Login" designs where the button is a tall block on the right. 
*/
.input-btn-wrap {
    display: flex;
    flex-direction: row; /* Side by side */
    gap: 10px;
    width: 100%;
    justify-content: center;
    align-items: stretch; /* Make button height match inputs container */
}

/* Container 05 - Inputs Wrapper */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1; /* Take remaining space */
}

/* Input Fields Common */
.login-input {
    width: 100%;
    height: 50px; /* Fixed height for consistency */
    padding: 0 12px;
    background-color: #ffffff;
    font-family: inherit;
    box-sizing: border-box;
}

.login-input::placeholder {
    font-size: 16px; /* Medium */
    font-weight: 500;
    color: #757575;
}

/* ID Input */
#userId {
    border: 1px solid #000000;
}

/* Password Input */
#userPw {
    border: 1px solid #cccccc;
}

/* Login Button */
.btn-login {
    padding: 0 30px; /* Reduced from 48px to fit better if width is constrained */
    /* Height is handled by align-items: stretch on parent */
    background-color: transparent;
    border: 2px solid #442c93;
    border-radius: 3px;
    color: #442c93;
    font-size: 17px;
    font-weight: 600; /* SemiBold */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: keep-all;
    min-width: 100px;
}

.btn-login:hover {
    background-color: #442c93;
    color: #ffffff;
}

/* Container 04 - Links */
.login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.btn-link {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 500; /* Medium */
    color: #000000;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.link-divider {
    width: 1px;
    height: 14px;
    background-color: #442c93;
    display: inline-block;
    vertical-align: middle;
}

/* Accessibility / Focus */
.login-input:focus,
.btn-login:focus,
.btn-link:focus {
    outline: 2px solid #442c93;
    outline-offset: 2px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .login-title {
        font-size: 40px;
    }
    
    .input-btn-wrap {
        flex-direction: column; /* Stack on mobile */
    }
    
    .btn-login {
        height: 50px;
        width: 100%;
    }
    
    .login-page-wrapper {
        padding-top: 100px; /* Smaller header adjustment */
    }
}
