:root {
    --primary-color: #356259; /* Converted rgb(53, 98, 89) to Hex */
    --primary-light: #62734e; /* Converted rgb(98, 115, 78) to Hex */
    --primary-dark: #4f6140;  /* Converted rgb(79, 97, 64) to Hex */
    --accent-color: #477a49;  /* Converted rgb(71, 122, 73) to Hex */
    --text-dark: #2c3e50;
    --text-light: #666;
    --bg-light: #e6ebe6;      /* Converted rgb(230, 235, 230) to Hex */
    --shadow: rgba(139, 195, 74, 0.15);
    --white: #ffffff;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../img/logo/apple-icon-180x180.png') center center no-repeat;
    background-size: 300px 300px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header img {
    height: 50px;
    margin-right: 15px;
}

.header h6 {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    margin-left: 15px;
    opacity: 0.9;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 15px;
    line-height: 1.2;
}

/* Main Container */
.container {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 80px); /* Adjust for header */
    background: var(--bg-light);
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Left Section: Info & News */
.info-section {
    flex: 6; /* 60% width */
    padding: 40px;
    border-right: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-section {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.news-header i {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 12px;
}

.news-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
}

.news-list {
    list-style: none;
}

.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h4 {
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.news-item p {
    color: var(--text-light);
    font-size: 0.95em;
    line-height: 1.6;
}

.news-date {
    display: inline-block;
    background: rgba(53, 98, 89, 0.1);
    color: var(--primary-color);
    font-size: 0.8em;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.info-footer {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.info-footer strong {
    color: var(--primary-color);
}

/* Right Section: Login Form */
.login-container {
    flex: 4; /* 40% width */
    background: var(--bg-light);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: var(--white);
    border-radius: 16px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px -10px rgba(53, 98, 89, 0.2);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.user-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 20px rgba(53, 98, 89, 0.3);
}

.user-icon::before {
    content: '\f007'; /* FontAwesome User Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 40px;
    color: var(--white);
}

.user-icon::after {
    content: '\f023'; /* FontAwesome Lock Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eef2f7;
    background: #fcfdfe;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--shadow);
    outline: none;
}

.form-control::placeholder {
    color: #aab2bd;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aab2bd;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px -5px rgba(53, 98, 89, 0.4);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(53, 98, 89, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-wrapper label {
    color: var(--text-light);
    font-size: 0.9em;
    cursor: pointer;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 15px 0;
    font-size: 0.85em;
}

.text-danger {
    color: var(--danger);
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    margin-left: 5px;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #fde8e8;
    color: var(--danger);
    border-color: #fad2d2;
}

.alert-success {
    background-color: #def7ec;
    color: #03543f;
    border-color: #bcf0da;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .info-section {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding: 30px;
    }
    
    .login-container {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .header h6 {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    
    .login-box {
        padding: 40px 25px;
    }
}
