/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Main Container */
.custom-login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Image Section */
.custom-login-image {
    flex: 1;
    background-image: url('/IH_Custom_Login/static/src/img/login_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.custom-login-logo {
    position: absolute;
    top: 40px;
    left: 40px;
}

.custom-logo-img {
    max-width: 180px;
    height: auto;
    display: block;
}

.custom-login-logo span {
    font-size: 42px;
    font-weight: 300;
    color: white;
    letter-spacing: 2px;
    text-transform: lowercase;
}

/* Right Side - Form Section */
.custom-login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    padding: 40px;
    min-height: 100vh;
}

.custom-login-form-container {
    width: 100%;
    max-width: 450px;
}

/* Title */
.custom-login-title {
    font-size: 32px;
    letter-spacing: 3px;
    margin-bottom: 50px;
    color: #000;
    text-align: center !important;
}

/* Form Groups */
.custom-form-group {
    margin-bottom: 30px;
}

.custom-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: 0.5px;
}

.custom-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #d0d0d0;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
}

.custom-input:focus {
    border-bottom-color: #000;
}

/* Remember Me Row */
.custom-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.custom-checkbox-label {
    font-size: 14px;
    color: #000;
    margin: 0;
    cursor: pointer;
}

.custom-forgot-link {
    font-size: 14px;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.custom-forgot-link:hover {
    opacity: 0.7;
}

/* Buttons */
.custom-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.custom-btn-primary {
    background-color: #2c2c2c;
    color: white;
    margin-bottom: 20px;
}

.custom-btn-primary:hover {
    background-color: #000;
}

.custom-btn-secondary {
    background-color: transparent;
    color: #000;
    border: 2px solid #2c2c2c;
    padding: 14px 24px;
}

.custom-btn-secondary:hover {
    background-color: #2c2c2c;
    color: white;
}

/* Guest Section */
.custom-guest-section {
    margin-top: 60px;
    text-align: center;
}

.custom-guest-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 20px;
}

.custom-btn-ghost {
    background-color: #f5f5f5;
    color: #000;
    border: 1px solid #e0e0e0;
}

.custom-btn-ghost:hover {
    background-color: #e8e8e8;
}

/* Alert Styles */
.alert-danger {
    padding: 12px;
    margin-bottom: 20px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .custom-login-wrapper {
        flex-direction: column;
    }
    
    .custom-login-image {
        min-height: 300px;
        flex: none;
    }
    
    .custom-login-logo {
        top: 30px;
        left: 30px;
    }
    
    .custom-logo-img {
        max-width: 140px;
    }
    
    .custom-login-form-wrapper {
        flex: none;
        min-height: calc(100vh - 300px);
    }
}

@media (max-width: 576px) {
    .custom-login-logo {
        top: 20px;
        left: 20px;
    }
    
    .custom-logo-img {
        max-width: 100px;
    }
    
    .custom-login-logo span {
        font-size: 32px;
    }
    
    .custom-login-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .custom-login-form-wrapper {
        padding: 30px 20px;
    }
    
    .custom-remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
@media (max-width: 320px) {
    .custom-login-logo {
        top: 20px;
        left: 20px;
    }
    
    .custom-logo-img {
        max-width: 100px;
    }
    
    .custom-login-logo span {
        font-size: 32px;
    }
    
    .custom-login-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .custom-login-form-wrapper {
        padding: 30px 20px;
    }
    
    .custom-remember-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}