.client-registration-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 20px;
}

.registration-content {
    max-width: 800px;
    margin: 0 auto;
}

.registration-header {
    background: #000000;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #333333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.registration-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-info {
    color: #9ca3af;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.registration-form {
    background: #000000;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #333333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.input-section {
    margin-bottom: 24px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.textarea-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #4a5568;
    border-radius: 8px;
    font-size: 16px;
    background: #1a1a1a;
    color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: #6b7280;
}

.input-help {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
}

.permissions-info {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #374151;
    margin-bottom: 24px;
}

.permissions-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.permissions-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.permission-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: start;
}

.permission-label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.permission-value {
    color: #ffffff;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.button-section {
    margin: 30px 0 20px 0;
}

.register-button {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.register-button:disabled {
    background: #4a5568;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.registration-result {
    background: #000000;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #333333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.registration-result.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.05);
}

.registration-result.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.05);
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.registration-result.success .result-title {
    color: #22c55e;
}

.registration-result.error .result-title {
    color: #ef4444;
}

.result-message {
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.client-credentials {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #374151;
}

.credential-item {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.credential-value {
    background: #000000;
    color: #60a5fa;
    padding: 12px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    border: 1px solid #4a5568;
    position: relative;
}

.credential-value.secret {
    color: #a855f7;
}

.copy-button {
    margin-top: 8px;
    padding: 6px 12px;
    background: #374151;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.copy-button:hover {
    background: #4b5563;
}

.security-warning {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    margin-top: 16px;
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-button {
    padding: 10px 16px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.action-button:hover {
    background: #3730a3;
}

.registration-footer {
    text-align: center;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #60a5fa;
}

/* Auth required, error, and loading states - reuse from dashboard */
.auth-required,
.error-state,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.auth-title,
.error-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.auth-title {
    color: #ffffff;
}

.error-title {
    color: #ef4444;
}

.auth-message,
.error-message {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 20px;
}

.login-link,
.retry-link {
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-link {
    background: linear-gradient(135deg, #60a5fa, #a855f7);
}

.login-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.retry-link {
    background: #4f46e5;
}

.retry-link:hover {
    background: #3730a3;
}

.loading-spinner {
    font-size: 32px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.loading-message {
    color: #9ca3af;
    font-size: 16px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .registration-content {
        margin: 0;
    }
    
    .registration-form,
    .registration-header,
    .registration-result {
        padding: 20px;
    }
    
    .registration-title {
        font-size: 24px;
    }
    
    .permission-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .credential-value {
        font-size: 12px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-button {
        width: 100%;
        text-align: center;
    }
}