/**
 * Register Page Styles
 * Moderne Registrierungsseite mit Designer-Branding
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

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

body.register-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Container */
.register-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Linke Info-Seite */
.register-info {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 80%, #000) 100%);
    color: #ffffff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

.register-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.intro-text {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Free Credits Box */
.free-credits-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

.credits-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credits-text {
    display: flex;
    flex-direction: column;
}

.credits-text strong {
    font-size: 18px;
    font-weight: 600;
}

.credits-text span {
    font-size: 14px;
    opacity: 0.8;
}

/* Pakete Section */
.packages-section {
    margin-bottom: 30px;
}

.packages-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.packages-list {
    display: flex;
    gap: 12px;
}

.packages-hint {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 12px;
    margin-top: -8px;
}

.package-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.package-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.package-item.selected {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.package-item.popular {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.package-item.popular.selected {
    border-color: #ffffff;
}

.package-select-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.package-item.selected .package-select-indicator {
    opacity: 1;
    transform: scale(1);
}

.popular-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.package-credits {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.package-price {
    font-size: 13px;
    opacity: 0.8;
}

/* Features Liste */
.features-list {
    margin-top: auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    opacity: 0.9;
}

.feature svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Rechte Seite: Formular */
.register-card {
    flex: 1;
    padding: 50px 40px;
    background: #ffffff;
}

.register-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    margin-bottom: 0;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-group label small {
    font-weight: 400;
    color: #6b7280;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.form-check label {
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    margin-bottom: 0;
}

.form-check label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--primary-color) 85%, #000);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

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

.login-link a:hover {
    text-decoration: underline;
}

/* Success Card */
.register-card-success {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #16a34a;
}

.register-card-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.success-message {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-hint {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 30px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    body.register-page {
        padding: 20px;
    }

    .register-container {
        flex-direction: column;
    }

    .register-info {
        padding: 30px 24px;
    }

    .register-info h1 {
        font-size: 22px;
    }

    .packages-list {
        flex-direction: column;
    }

    .register-card {
        padding: 30px 24px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }
}
