:root {
    --primary-dark: #122848;
    --primary-accent: #4fc43d;
    --primary-light: #1a3a5f;
    --background-light: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-light: #e2e8f0;
    --shadow: 0 10px 25px rgba(18, 40, 72, 0.08);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.background-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(79, 196, 61, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(18, 40, 72, 0.05) 0%, transparent 25%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-section {
    flex: 1;
    max-width: 500px;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

/* UPDATED FOR LANDSCAPE LOGO */
.logo-img {
    width: 220px;         /* Increased width significantly for landscape */
    height: auto;         /* maintain aspect ratio */
    max-height: 100px;    /* limits height so it doesn't get too tall */
    object-fit: contain;
    border-radius: 8px;   /* slightly smaller radius for rectangular images */
    background: transparent; /* Changed to transparent in case logo has white bg */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 2px;
}

/* UPDATED SERVICES LTD TEXT */
.logo-text p {
    color: var(--primary-light); /* Darker blue to match title better */
    font-size: 1.1rem;
    font-weight: 600;           /* Bolder text to match */
    letter-spacing: 0.5px;
}

.hero-content {
    margin-top: 40px;
}

.hero-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(79, 196, 61, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: var(--primary-accent);
    font-size: 1.2rem;
}

.feature-text {
    font-weight: 500;
    color: var(--text-dark);
}

.login-section {
    flex: 0 0 420px;
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.login-card:hover {
    box-shadow: 0 15px 35px rgba(18, 40, 72, 0.12);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(79, 196, 61, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary-accent);
}

.forgot-password {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: var(--primary-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(79, 196, 61, 0.2);
}

.btn-login:hover {
    background: #3da82e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 196, 61, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.social-btn:hover {
    background: var(--background-light);
    border-color: var(--primary-accent);
    transform: translateY(-2px);
}

.register-link {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.register-link a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link a:hover {
    text-decoration: underline;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.7;
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(79, 196, 61, 0.15) 0%, transparent 70%);
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 10%;
    background: radial-gradient(circle, rgba(18, 40, 72, 0.1) 0%, transparent 70%);
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 80%;
    background: radial-gradient(circle, rgba(79, 196, 61, 0.1) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }
    33% {
        transform: translateY(-20px) rotate(120deg) translateX(10px);
    }
    66% {
        transform: translateY(10px) rotate(240deg) translateX(-5px);
    }
    100% {
        transform: translateY(0) rotate(360deg) translateX(0);
    }
}

@media (max-width: 968px) {
    .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-section {
        max-width: 100%;
    }
    
    .features {
        justify-content: center;
    }
    
    .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}