/* Modern Reset & Base Styles */
:root {
    --primary-color: #112233;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #f4f7f6;
    --card-bg: #fff;
    --input-bg: #f9f9f9;
    --border-color: #e1e8ed;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

body.login {
    background-color: var(--bg-color) !important;
    background-image: none !important;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
}

/* Fix for footer.php elements */
.backstretch,
.backstretch-item {
    display: none !important;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 12px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Main Container */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 600px;
    position: relative;
    z-index: 20;
    margin: auto;
}

/* Left Section: Form */
.login-section-form {
    flex: 1;
    padding: 30px 50px 30px 50px;
    /* Reduced top padding as requested */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Align from top instead of center */
}

/* Right Section: Info/Brand */
.login-section-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 25px;
    height: 80px;
    /* Fixed height container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container img {
    max-width: 220px;
    max-height: 80px;
    object-fit: contain;
}

.logo-container h3 {
    margin: 0;
    font-size: 24px;
    color: var(--primary-color);
}

/* Typography & Elements */
.form-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color) !important;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.control-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
    display: block;
}

.form-control {
    width: 100%;
    height: 45px;
    padding: 10px 15px 10px 45px !important;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--input-bg);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.input-icon {
    position: relative;
}

.input-icon>i {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    margin: auto;
    height: 18px;
    line-height: 18px;
    font-size: 16px;
    color: var(--text-light);
    z-index: 2;
    display: flex;
    align-items: center;
}

.btn.blue {
    width: 100%;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.btn.blue:hover {
    background: #1a3a5c;
}

.btn-default {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    display: inline-block;
}

.btn-default:hover {
    background: #f1f1f1;
    color: var(--text-color);
}

.forget-password {
    display: block;
    text-align: right;
    margin-bottom: 20px;
    color: var(--text-light) !important;
    font-size: 13px;
    text-decoration: none;
}

.forget-password:hover {
    color: var(--accent-color) !important;
}

.create-account {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.create-account p {
    color: var(--text-light) !important;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn.green-meadow {
    background: transparent;
    color: var(--success-color);
    border: 1px solid var(--success-color);
    padding: 8px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-size: 14px;
}

.btn.green-meadow:hover {
    background: var(--success-color);
    color: white;
}

/* Alerts */
.alert {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
}

.alert-danger {
    background-color: #fce4e4;
    color: var(--error-color);
    border: 1px solid #fcc2c3;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.no-display {
    display: none;
}

/* Right Section Elements */
.info-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.info-phone {
    font-size: 48px;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

.info-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-badge img {
    height: 30px;
}

.info-badge p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    text-align: left;
}

/* Responsive */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .login-section-info {
        padding: 30px;
    }

    .info-phone {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .login-section-form {
        padding: 40px 30px;
    }
}