.autohjul-auth-container {
    max-width: 450px;
    margin: 40px auto;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}
.reg-wide { max-width: 600px; }

.auth-logo { width: 180px; margin-bottom: 20px; }

.benefits-box {
    text-align: left;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.benefits-box ul { list-style: none; padding: 0; font-size: 14px; }
.check { color: #fff; background: #2e7d32; border-radius: 50%; padding: 2px 6px; margin-right: 10px; }

.auth-form input[type="text"], 
.auth-form input[type="email"], 
.auth-form input[type="password"], 
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-row { display: flex; gap: 10px; }
.form-utils { display: flex; justify-content: space-between; font-size: 13px; margin: 15px 0; }

.auth-btn {
    width: 100%;
    background: #1976d2;
    color: #fff;
    border: none;
    padding: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}
.auth-btn:hover { background: #1565c0; }

.consent-group { text-align: left; font-size: 13px; margin: 15px 0; }
.consent-group label { display: block; margin-bottom: 5px; }

#title-login {
    margin: 0px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.167;
    letter-spacing: -0.01562em;
    font-size: 2rem;
    font-weight: 600;
}
.subtitle {
   margin: 0px;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    font-weight: 300;
    line-height: 1.167;
    letter-spacing: -0.01562em;
    color: grey;
    font-size: 1rem;
}
        .autohjul-login-wrapper {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            margin: 0;
        }

        .autohjul-login-container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 500px;
            width: 100%;
            padding: 48px 40px;
            margin: 0 auto;
            text-align: center;
        }

        .autohjul-logo {
            text-align: center;
            margin-bottom: 24px;
        }

        .autohjul-logo-text {
            font-size: 32px;
            font-weight: 900;
            color: #1a1a1a;
            letter-spacing: 2px;
        }

        .autohjul-logo-icon {
            display: inline-block;
            width: 28px;
            height: 28px;
            background: #2563eb;
            border-radius: 50%;
            margin: 0 4px;
            vertical-align: middle;
            position: relative;
        }

        .autohjul-logo-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 16px;
            height: 16px;
            background: white;
            border-radius: 50%;
        }

        .autohjul-login-container h1 {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 8px;
            text-align: center;
        }

        .autohjul-subtitle {
            font-size: 14px;
            color: #6b7280;
            text-align: center;
            margin-bottom: 32px;
            line-height: 1.5;
        }

        .autohjul-benefits-title {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
            margin-bottom: 16px;
            text-align: center;
        }

        .autohjul-benefits-list {
            list-style: none;
            margin-bottom: 32px;
            padding: 0;
            text-align: left;
            max-width: 420px;
            margin-left: auto;
            margin-right: auto;
        }

        .autohjul-benefit-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
            font-size: 14px;
            color: #4b5563;
            line-height: 1.6;
        }

        .autohjul-check-icon {
            width: 20px;
            height: 20px;
            background: #10b981;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .autohjul-check-icon::after {
            content: '✓';
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

        .autohjul-login-container .autohjul-login-form {
            text-align: center;
        }

        .autohjul-form-group {
            margin-bottom: 20px;
            text-align: center;
        }

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

        .autohjul-required {
            color: #ef4444;
        }

        .autohjul-input-wrapper {
            position: relative;
        }

        .autohjul-form-group input[type="email"],
        .autohjul-form-group input[type="password"],
        .autohjul-form-group input[type="text"] {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            outline: none;
        }

        .autohjul-form-group input[type="email"]:focus,
        .autohjul-form-group input[type="password"]:focus,
        .autohjul-form-group input[type="text"]:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .autohjul-form-group input[type="password"] {
            /* padding-right: 48px; */
        }

        .autohjul-toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .autohjul-toggle-password:hover {
            color: #374151;
        }

        .autohjul-form-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            font-size: 14px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .autohjul-remember-me {
            display: flex;
            align-items: center;
            cursor: pointer;
        }

        .autohjul-remember-me input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 8px;
            cursor: pointer;
        }

        .autohjul-forgot-password {
            color: #2563eb;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .autohjul-forgot-password:hover {
            color: #1d4ed8;
        }

        .autohjul-submit-btn {
            width: 100%;
            padding: 14px;
            background: #2563eb;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .autohjul-submit-btn:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
        }

        .autohjul-submit-btn:active {
            transform: translateY(0);
        }

        .autohjul-signup-link {
            text-align: center;
            margin-top: 24px;
            font-size: 14px;
            color: #6b7280;
        }

        .autohjul-signup-link a {
            color: #2563eb;
            text-decoration: none;
            font-weight: 600;
            margin-left: 4px;
        }

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

        .autohjul-error-message {
            display: none;
            background: #fee2e2;
            color: #991b1b;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 13px;
            margin-top: 8px;
        }

        /* Login: red border on validation error */
        .autohjul-form-group input.autohjul-field-error,
        .autohjul-form-group .autohjul-input-wrapper input.autohjul-field-error {
            border-color: #dc2626 !important;
            box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
        }
        .autohjul-form-group.autohjul-has-error .autohjul-error-message {
            display: block;
        }

        @media (max-width: 640px) {
            .autohjul-login-container {
                padding: 32px 24px;
            }

            .autohjul-login-container h1 {
                font-size: 24px;
            }

            .autohjul-form-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
        }

   .autohjul-register-wrapper {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
            background: #fff;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
            margin: 0;
        }

        .autohjul-register-container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            max-width: 600px;
            width: 100%;
            padding: 48px 40px;
        }

        .autohjul-register-container h1 {
            font-size: 32px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 12px;
            text-align: center;
        }

        .autohjul-register-subtitle {
            font-size: 14px;
            color: #6b7280;
            text-align: center;
            margin-bottom: 32px;
            line-height: 1.6;
        }

        .autohjul-radio-group {
            /* display: flex; */
            gap: 24px;
            margin-bottom: 24px;
            justify-content: center;
        }

        .autohjul-radio-label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 14px;
            color: #374151;
        }

        .autohjul-radio-label input[type="radio"] {
            width: 20px;
            height: 20px;
            margin-right: 8px;
            cursor: pointer;
            accent-color: #2563eb;
        }

        .autohjul-company-field {
            display: none;
            margin-bottom: 20px;
        }

        .autohjul-company-field.active {
            display: block;
        }

        .autohjul-register-form-group {
            margin-bottom: 20px;
        }

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

        .autohjul-register-input-wrapper {
            position: relative;
        }

        .autohjul-register-form-group input[type="text"],
        .autohjul-register-form-group input[type="email"],
        .autohjul-register-form-group input[type="password"],
        .autohjul-register-form-group input[type="tel"] {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            outline: none;
            box-sizing: border-box;
        }

        .autohjul-register-form-group input:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .autohjul-register-form-group input[type="password"] {
            padding-right: 48px;
        }

        .autohjul-register-toggle-password {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .autohjul-register-toggle-password:hover {
            color: #374151;
        }

        .autohjul-register-checkboxes {
            margin: 24px 0;
        }

        .autohjul-register-checkbox-label {
            display: flex;
            align-items: flex-start;
            margin-bottom: 16px;
            cursor: pointer;
            font-size: 14px;
            color: #4b5563;
            line-height: 1.6;
        }

        .autohjul-register-checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-right: 10px;
            margin-top: 2px;
            cursor: pointer;
            flex-shrink: 0;
            accent-color: #2563eb;
        }

        .autohjul-register-checkbox-label a {
            color: #2563eb;
            font-weight: 600;
            text-decoration: none;
        }

        .autohjul-register-checkbox-label a:hover {
            text-decoration: underline;
        }

        .autohjul-register-submit-btn {
            width: 100%;
            padding: 14px;
            background: #2563eb;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .autohjul-register-submit-btn:hover:not(:disabled) {
            background: #1d4ed8;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
        }

        .autohjul-register-submit-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .autohjul-register-submit-btn:disabled {
            background: #d1d5db;
            cursor: not-allowed;
        }

        .autohjul-register-error {
            display: none;
            color: #dc2626;
            font-size: 13px;
            margin-top: 6px;
        }

        /* Registration: red border on validation error */
        .autohjul-register-form-group input.autohjul-field-error,
        .autohjul-register-form-group .autohjul-register-input-wrapper input.autohjul-field-error {
            border-color: #dc2626 !important;
            box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
        }
        .autohjul-register-form-group.autohjul-has-error .autohjul-register-error {
            display: block;
        }
        .autohjul-register-form-group.autohjul-has-error .autohjul-register-checkbox-label {
            color: #dc2626;
        }
        #autohjulGroupPrivacy.autohjul-has-error .autohjul-register-error {
            display: block;
        }

        .autohjul-register-login-link {
            text-align: center;
            margin-top: 24px;
            font-size: 14px;
            color: #6b7280;
        }

        .autohjul-register-login-link a {
            color: #2563eb;
            text-decoration: none;
            font-weight: 600;
            margin-left: 4px;
        }

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

        /* Privacy Policy Modal Styles */
        .autohjul-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .autohjul-modal-overlay.active {
            display: flex;
        }

        .autohjul-modal-content {
            background: white;
            border-radius: 16px;
            max-width: 800px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .autohjul-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            color: #6b7280;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .autohjul-modal-close:hover {
            background: #f3f4f6;
            color: #1a1a1a;
        }

        .autohjul-modal-content h5 {
            font-size: 24px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 16px;
            margin-top: 0;
        }

        .autohjul-modal-content h6 {
            font-size: 18px;
            font-weight: 600;
            color: #1a1a1a;
            margin-top: 24px;
            margin-bottom: 12px;
        }

        .autohjul-modal-content p {
            font-size: 14px;
            color: #4b5563;
            line-height: 1.6;
            margin-bottom: 16px;
        }

        .autohjul-modal-content ul {
            font-size: 14px;
            color: #4b5563;
            line-height: 1.6;
            margin-bottom: 16px;
            padding-left: 24px;
        }

        .autohjul-modal-content ul li {
            margin-bottom: 8px;
        }

        @media (max-width: 640px) {
            .autohjul-register-container {
                padding: 32px 24px;
            }

            .autohjul-register-container h1 {
                font-size: 26px;
            }

            .autohjul-radio-group {
                flex-direction: column;
                gap: 12px;
            }

            .autohjul-modal-content {
                padding: 24px;
                max-height: 85vh;
            }

            .autohjul-modal-content h5 {
                font-size: 20px;
            }

            .autohjul-modal-content h6 {
                font-size: 16px;
            }
        }