* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body.login-page {
    min-height: 100vh;
    width: 100%;
    background-color: #496f34;
    background-image: url("../images/login_bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow-x: hidden;
}

.login-overlay-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    box-sizing: border-box;
}

/* Top Header Navigation */
.top-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 5;
}

.header-logo {
    display: flex;
    align-items: center;
}

/* Main Content Layout */
.main-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    flex: 1;
    padding: 20px 0;
}

/* Left Side Welcome Text */
.welcome-section {
    flex: 1;
    max-width: 580px;
    padding-right: 40px;
}

.welcome-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Right Side Login Card */
.login-card-container {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 38px 36px 34px 36px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Language Switcher Icon inside Card */
.lang-switch-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.lang-switch-icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Pioneer Logo inside Card */
.card-logo-wrapper {
    text-align: center;
    margin-bottom: 12px;
    margin-top: 4px;
}

.card-subtitle {
    text-align: center;
    font-size: 18.5px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 26px;
    line-height: 1.35;
}

/* Form Inputs & Labels */
.form-group {
    margin-bottom: 18px;
    position: relative;
}

.input-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #496f34;
    margin-bottom: 7px;
}

.input-relative {
    position: relative;
    width: 100%;
}

.form-control {
    width: 100%;
    height: 48px;
    background-color: #edf2eb;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #2b3a26;
    outline: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.form-control::placeholder {
    color: #9cb195;
    font-weight: 400;
}

.form-control:focus {
    background-color: #ffffff;
    border-color: #496f34;
    box-shadow: 0 0 0 3px rgba(73, 111, 52, 0.18);
    color: #1a1a1a;
}

/* Password Toggle Icon */
.input-relative i#iconId {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8fa488;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: color 0.2s;
}

.input-relative i#iconId:hover {
    color: #496f34;
}

/* Forgot Password Link */
.forgot-password-wrapper {
    text-align: right;
    margin-top: 6px;
    margin-bottom: 22px;
}

.forgot-password-link {
    font-size: 13px;
    font-weight: 600;
    color: #496f34;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: #355225;
    text-decoration: underline;
}

/* Login Button */
.log-btn {
    width: 100%;
    height: 48px;
    background-color: #9bb38d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(155, 179, 141, 0.35);
}

.log-btn:hover {
    background-color: #8aa77b;
    color: #ffffff;
}

.log-btn:active {
    transform: scale(0.99);
}

/* Error Message Display */
label.error {
    color: #d9534f;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.form-group.has-error .form-control {
    border-color: #d9534f;
    background-color: #fff8f8;
}

.login-error {
    color: #d9534f;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 14px;
    min-height: 18px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .login-overlay-container {
        padding: 25px 30px;
    }

    .main-content-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .welcome-section {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .welcome-title {
        font-size: 28px;
    }

    .login-card-container {
        margin: 0 auto;
        max-width: 420px;
    }
}

@media (max-width: 576px) {
    .login-overlay-container {
        padding: 20px 16px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .login-card {
        padding: 30px 22px 26px 22px;
        border-radius: 16px;
    }

    .card-subtitle {
        font-size: 17px;
        margin-bottom: 22px;
    }
}
