/* Registration Page Styles (Pure Light Theme with Unified Background) */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17352a;
    background: linear-gradient(145deg, #f8fdf9, #e8f6ed);
}

.register-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.marketing-side {
    flex: 1.1;
    color: #17352a;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('/kvitkacrm-logo-faded.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(80%, 80vh);
}

.marketing-content {
    max-width: 580px;
    margin: auto 0;
    z-index: 1;
}

.marketing-title {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #17352a;
}

.marketing-subtitle {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 32px;
    color: #4a6053;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #2b4436;
}

.benefit-icon {
    flex-shrink: 0;
    color: #23533d;
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.form-side {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-side .box {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dcebe1;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(40, 90, 60, 0.08);
    backdrop-filter: blur(18px);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.auth-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 40px;
}

.auth-brand h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    color: #17352a;
}

.form-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.45;
    color: #6a7c73;
}

.form-side label {
    display: block;
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    color: #315044;
}

.form-side input, .form-side select {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dcebe1;
    border-radius: 8px;
    margin: 0 0 8px;
    background: #fff;
    color: #17352a;
    font: inherit;
}

.form-side select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315044' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
}

.form-side button, .form-side a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #dff5e7;
    color: #17352a;
    font-weight: 800;
    text-decoration: none;
    margin-top: 4px;
    font: inherit;
    cursor: pointer;
}

.form-side button svg, .form-side a svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.form-side a {
    background: #eefaf1;
    color: #23533d;
    border: 1px solid #ccebd7;
}

.form-side a:hover {
    background: #dff5e7;
}

.form-side button {
    background: #23533d;
    color: #ffffff;
}

.form-side button:hover {
    background: #2c664b;
}

.form-side .err {
    color: #b42318;
    background: #fff1f1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #fda29b;
}

.brand-logo-light {
    display: block;
}

.mobile-only-footer {
    display: none !important;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .form-side {
        padding: 30px;
    }
    .marketing-side {
        padding: 40px;
    }
}

@media (max-width: 980px) {
    .register-wrapper {
        flex-direction: column-reverse;
        justify-content: flex-start;
    }
    .form-side {
        width: 100%;
        padding: 30px 20px;
    }
    .marketing-side {
        width: 100%;
        padding: 20px 20px 60px;
        align-items: center;
        text-align: center;
        background-size: min(80%, 220px);
    }
    .marketing-content {
        margin: 0 auto;
    }
    .benefits-list {
        text-align: left;
        max-width: 460px;
        margin: 0 auto;
    }
    .desktop-only-footer {
        display: none !important;
    }
    .mobile-only-footer {
        display: block !important;
    }
}

@media (max-width: 560px) {
    .form-side {
        padding: 20px 12px;
    }
    
    .form-side .box {
        padding: 24px 18px;
        border-radius: 10px;
    }
    
    .auth-brand {
        gap: 8px;
        margin-bottom: 14px;
    }
    
    .auth-brand img {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }
    
    .auth-brand h1 {
        font-size: 24px;
    }
    
    .form-title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .form-side label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .form-side input, .form-side select {
        padding: 10px 12px;
        margin-bottom: 12px;
        font-size: 14px;
    }
    
    .form-side select {
        background-position: right 12px center;
        background-size: 14px;
    }
    
    .form-side button, .form-side a {
        padding: 10px 12px;
        margin-top: 6px;
        font-size: 14px;
    }
    
    .marketing-side {
        padding: 30px 16px 40px;
    }
    
    .marketing-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .marketing-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .benefits-list {
        gap: 12px;
    }
    
    .benefit-item {
        font-size: 14px;
        gap: 10px;
    }
    
    .benefit-icon {
        width: 16px;
        height: 16px;
        margin-top: 2px;
    }
}
