:root {
    --primary-color: #3a86ff;
    --primary-hover: #2a75ee;
    --text-primary: #1a1c1e;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e1e5ea;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    display: flex;
    height: 100vh;
    position: relative;
    overflow: hidden; /* Verhindert Scrollen des gesamten Containers */
}

.left-section, .right-section {
    flex: 1;
    min-width: 0;
    overflow: auto;
}

.left-section {
    background-color: var(--bg-white);
    padding: 40px;
    overflow-y: auto; /* Macht nur die linke Seite scrollbar */
    height: 100vh; /* Volle Höhe */
}

.form-wrapper {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary-color);
    margin-right: 12px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

.toggle-container {
    margin-bottom: 28px;
}

.toggle {
    display: flex;
    background-color: var(--bg-light);
    padding: 3px;
    border-radius: var(--radius-md);
    position: relative;
}

.toggle button {
    flex: 1;
    padding: 12px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    z-index: 1;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.toggle button.active {
    color: var(--text-primary);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

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

.forgot-password {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
    color: var(--text-primary);
    background-color: var(--bg-white);
    padding-right: 40px; /* Platz für das Augensymbol */
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

.input-with-icon input::placeholder {
    color: var(--text-tertiary);
}

.toggle-password {
    position: absolute;
    right: 40px; /* Adjusted from 10px to 16px to align with input padding */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
}

.remember-me {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

#submit-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
}

#submit-btn:hover {
    background-color: var(--primary-hover);
}

.divider {
    display: flex;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 14px;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    padding: 0 16px;
}

.social-logins {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    background-color: var(--bg-light);
}

.social-btn i {
    font-size: 18px;
    color: var(--text-primary);
}

.footer-text {
    text-align: center;
    font-size: 13px;
    color: var (--text-secondary);
}

.footer-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

.right-section {
    background: linear-gradient(135deg, #3a86ff 0%, #0048c9 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.feature-content {
    max-width: 500px;
}

.feature-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-content > p {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 20px;
}

.feature-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Responsive styling */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .right-section {
        display: none;
    }
    
    .left-section {
        padding: 40px 20px;
    }
    
    .form-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-wrapper {
    animation: fadeIn 0.5s ease forwards;
}

/* Light/Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e8eaed;
        --text-secondary: #9aa0a6;
        --text-tertiary: #5f6368;
        --bg-light: #202124;
        --bg-white: #2d2e31;
        --border-color: #3c4043;
    }
    
    .toggle button.active {
        background-color: #3c4043;
    }
    
    .feature-content > p,
    .feature-text p {
        opacity: 0.7;
    }
}