@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
}

.login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Left Hero Section */
.hero-section {
    flex: 1;
    position: relative;
    background: url('../images/istockphoto-2117759132-612x612.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 60px;
    color: #ffffff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
    z-index: 1;
}

.hero-header, .hero-content, .hero-footer {
    position: relative;
    z-index: 2;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-header-icon {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

.hero-header-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
}

.hero-footer {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Right Form Section */
.form-section {
    width: 440px;
    min-width: 400px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 50px;
}

.form-wrapper {
    width: 100%;
    max-width: 340px;
}

.brand-badge {
    width: 52px;
    height: 52px;
    background-color: #dc2626;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #374151;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: #9ca3af;
    fill: none;
}

.form-input {
    width: 100%;
    height: 46px;
    padding-left: 42px;
    padding-right: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
}

.form-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.has-toggle {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.toggle-password:hover {
    color: #4b5563;
}

.toggle-password:focus {
    outline: none;
}

.toggle-password:focus-visible {
    outline: 2px solid #dc2626;
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

.options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    height: 46px;
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b91c1c;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #9ca3af;
    font-size: 12px;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 12px;
}

.btn-secondary {
    width: 100%;
    height: 46px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #111827;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
}

@media (max-width: 760px) {
    html, body { overflow: auto; }
    .login-container { min-height: 100vh; height: auto; }
    .hero-section { display: none; }
    .form-section { width: 100%; min-width: 0; min-height: 100vh; padding: 32px 24px; }
}
