/* login_modern.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #1b3d5d;
    --accent-pink: #ff387a;
    --bg-gradient: linear-gradient(135deg, #a8e0ff 0%, #ffffff 100%);
    --input-border: #e0e6ed;
    --text-dark: #333;
    --text-light: #666;
}

* {
    box-sizing: border-box;
}

body.login-body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    position: relative;
    overflow-y: auto;
}

/* Background image overlay with blur and opacity */
body.login-body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    overflow: hidden;
    min-height: 480px;
    width: 100%;
    margin-top: 20px;
}

/* Left Panel */
.pro-line_left {
    background: var(--primary-blue);
    color: #fff;
    width: 42%;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.pro-line_left .circle-1 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.pro-line_left .circle-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: 20px;
    left: -40px;
}

.pro-line_left h2 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 60px;
    opacity: 0.7;
    text-transform: uppercase;
}

.pro-line_left .logo-container {
    margin-bottom: 20px;
    z-index: 2;
}

.pro-line_left .logo-container img {
    max-width: 220px;
}

/* Custom IndoHRM logo text style if image not used */
.logo-text {
    font-size: 48px;
    font-weight: 700;
    color: #3e82f7;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.pro-line_left .welcome-text {
    font-size: 16px;
    font-weight: 500;
    margin-top: 40px;
    opacity: 0.9;
}

/* Right Panel */
.pro-line_right {
    width: 58%;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.pro-line_right h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #111;
}

.sub-text {
    color: #777;
    margin-bottom: 15px;
    margin-top: 0px;
    font-size: 13px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i:first-child {
    position: absolute;
    left: 20px;
    color: #aaa;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background: #fff;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: #3e82f7;
    box-shadow: 0 0 0 4px rgba(62, 130, 247, 0.1);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 20px;
    cursor: pointer;
    color: #aaa;
    font-size: 16px;
    transition: color 0.2s;
    z-index: 5;
}

.password-toggle:hover {
    color: #666;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
    border: 1px solid var(--input-border);
    border-radius: 4px;
}

.checkbox-container label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 0;
    text-transform: none;
    cursor: pointer;
}

/* Button */
.btn-submit {
    background: var(--accent-pink);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(255, 56, 122, 0.25);
    margin-top: 15px !important;
}

.btn-submit:hover {
    background: #f03270;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 56, 122, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Forgot Password */
.forgot-password-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #1b3d5d;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.forgot-password-link:hover {
    opacity: 1;
}

.company-notice {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    text-align: left;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wrapper {
        max-width: 900px;
    }
    .pro-line_right {
        padding: 50px;
    }
}

@media (max-width: 850px) {
    .login-card {
        flex-direction: column;
        border-radius: 20px;
    }
    .pro-line_left {
        width: 100%;
        padding: 40px;
        min-height: auto;
    }
    .pro-line_left h2 {
        margin-bottom: 30px;
    }
    .pro-line_left .welcome-text {
        margin-top: 30px;
    }
    .pro-line_right {
        width: 100%;
        padding: 40px 30px;
    }
    .pro-line_right h1 {
        font-size: 28px;
    }
    body.login-body {
        height: auto;
        padding: 20px 0;
        overflow-y: auto;
    }
}
