/* ============================
   Split Layout - SeedProd Style
   Login Links, Branding Rechts
   ============================ */

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

html, body {
    height: 100%;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #333;
}

body {
    display: flex;
    flex-direction: row;
}

/* ============================
   LEFT SIDE - Login Form Section (FIXED WIDTH)
   ============================ */
.login-section {
    width: 450px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 0;
}

.login-header {
    background: #ffffff;
    padding: 30px 40px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.login-header img {
    max-width: 140px;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto 8px auto;
}

.brand-name {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
}

.brand-description {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-card {
    background: transparent;
    width: 100%;
    max-width: 380px;
}

.login-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

/* ============================
   SECURITY INFO
   ============================ */
.security-info {
    background: #f3f4f6;
    padding: 12px 14px;
    margin-bottom: 28px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    line-height: 1.6;
}

.security-info strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.security-info ul {
    margin: 8px 0 0 16px;
    padding: 0;
    font-size: 11px;
    list-style: disc;
}

.security-info li {
    margin-bottom: 2px;
}

/* ============================
   FORMS
   ============================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:hover {
    border-color: #bfdbfe;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0369a1;
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* ============================
   CHECKBOX
   ============================ */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px 0;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    accent-color: #0369a1;
}

.form-checkbox label {
    margin: 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    font-weight: 400;
}

/* ============================
   BUTTONS
   ============================ */
.btn-login {
    width: 100%;
    padding: 11px 16px;
    background: #0369a1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: #082f49;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.3);
}

.btn-login:active {
    transform: translateY(1px);
    background: #082f49;
}

/* ============================
   FORM FOOTER
   ============================ */
.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer a,
.back-link {
    color: #0369a1;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.form-footer a:hover,
.back-link:hover {
    color: #082f49;
    text-decoration: underline;
}

/* ============================
   ALERTS
   ============================ */
.alert {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}

/* ============================
   RIGHT SIDE - Branding Section (FLEXIBLE, verschwindet auf Mobile)
   ============================ */
.branding-section {
    flex: 1;
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.65) 0%, rgba(8, 47, 73, 0.65) 50%, rgba(15, 23, 42, 0.65) 100%), url(images/background.png);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.branding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.branding-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.branding-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.95;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    text-align: left;
}

.branding-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.branding-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.branding-feature-text {
    flex: 1;
}

.branding-feature-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.branding-feature-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

/* ============================
   FOOTER - BOTTOM OF LOGIN SECTION
   ============================ */
.login-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 16px 40px;
    text-align: center;
}

.footer-links {
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0369a1;
}

.login-footer p {
    margin: 0;
    font-size: 10px;
    color: #999;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1024px) {
    .login-section {
        width: 55%;
    }

    .branding-section {
        width: 45%;
    }

    .branding-content h3 {
        font-size: 24px;
    }

    .branding-content p {
        font-size: 14px;
    }

    .login-container {
        padding: 30px;
    }

    .login-header {
        padding: 25px 30px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .login-section {
        width: 100%;
        order: 2;
    }

    .branding-section {
        display: none;
    }

    .branding-content h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .branding-content p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .branding-features {
        gap: 12px;
        margin-top: 24px;
    }

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

    .login-header {
        padding: 20px;
        border-bottom: none;
    }

    .login-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .branding-section {
        padding: 30px 20px;
        min-height: 150px;
    }

    .branding-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .branding-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .branding-features {
        gap: 10px;
        margin-top: 16px;
    }

    .branding-feature-text strong {
        font-size: 12px;
    }

    .branding-feature-text p {
        font-size: 11px;
    }

    .login-container {
        padding: 20px;
    }

    .login-header {
        padding: 20px;
    }

    .login-header img {
        max-width: 120px;
    }

    .brand-name {
        font-size: 12px;
    }

    .login-card h2 {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 13px;
    }

    .login-footer {
        padding: 12px 20px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a {
        font-size: 10px;
    }
}
