/* ECO Agency Login Page Styles */
/* Color Palette: Red (#DC2626), Dark Gray (#1F2937), Black (#0A0A0A) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-split-container {
    display: flex;
    height: 100vh;
}

/* ============================================
   LEFT SIDE - Dark Marketing Section
   ============================================ */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #0A0A0A 0%, #1F2937 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" x="50" y="50" fill="%23DC2626" opacity="0.05"/></svg>') repeat;
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
}

.main-logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.marketing-content h2 {
    font-size: 48px;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 300;
}

.marketing-content h2 .highlight {
    color: #DC2626;
    font-weight: 700;
    display: block;
}

.tagline {
    color: #9CA3AF;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 50px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DC2626;
    flex-shrink: 0;
}

.feature-text h3 {
    color: #FFFFFF;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-text p {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   RIGHT SIDE - Login Form
   ============================================ */
.login-right {
    flex: 1;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 450px;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    color: #0A0A0A;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #6B7280;
    font-size: 16px;
}

/* Alert Styles */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert svg {
    flex-shrink: 0;
}

/* Form Styles */
.login-form-eco {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 13px;
    color: #DC2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #B91C1C;
}

.input-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 50px;
}

/* Left icons (email, password) - not inside buttons */
.input-wrapper > svg:first-of-type {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 50px 14px 48px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    color: #0A0A0A;
    transition: all 0.2s;
    background: #F9FAFB;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #DC2626;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input-wrapper input::placeholder {
    color: #9CA3AF;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #9CA3AF;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    z-index: 10;
}

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

.toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #6B7280;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    cursor: pointer;
}

/* Submit Button */
.btn-eco-primary {
    width: 100%;
    padding: 16px 24px;
    background: #DC2626;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-eco-primary svg {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.btn-eco-primary:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-eco-primary:hover svg {
    transform: translateX(4px);
}

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

/* Footer */
.login-footer {
    margin-top: 40px;
    text-align: center;
}

.login-footer p {
    color: #9CA3AF;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .login-split-container {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
        min-height: 40vh;
    }

    .marketing-content h2 {
        font-size: 36px;
    }

    .features {
        gap: 20px;
    }

    .login-right {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .login-left {
        padding: 30px 20px;
    }

    .marketing-content h2 {
        font-size: 28px;
    }

    .tagline {
        font-size: 16px;
    }

    .feature-item {
        gap: 15px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-text h3 {
        font-size: 16px;
    }
}
