/**
 * Onboarding Component Styles
 * Input validation, cards, modals, and form elements
 */

/* Input Validation States */
input.valid-input {
    border-color: #10b981 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

input.invalid-input {
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
}

/* Hide validation icons for password fields */
.password-input-wrapper input.valid-input,
.password-input-wrapper input.invalid-input {
    background-image: none !important;
    border-color: #d1d5db !important;
}

/* Account Type Cards */
.account-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.account-card.selected {
    border-color: rgb(59, 130, 246);
    background: linear-gradient(to bottom right, rgb(239, 246, 255), rgb(255, 255, 255));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Integration Cards */
.integration-card {
    transition: all 0.2s ease;
}

.integration-card:hover {
    border-color: #93c5fd;
    background-color: #eff6ff;
}

/* SSO Buttons */
.sso-button {
    transition: all 0.2s ease;
}

.sso-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sso-button:active {
    transform: translateY(0);
}

/* Modal Animations */
.modal-backdrop {
    animation: fadeIn 0.2s ease-in;
}

.modal-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Elements */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #1d4ed8, #6d28d9);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}

/* Subdomain Preview */
.subdomain-preview {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Validation Messages */
.validation-message {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.validation-message.error {
    color: #ef4444;
}

.validation-message.success {
    color: #10b981;
}

.validation-message.info {
    color: #6b7280;
}
