/* Blazor Registration - Wizard Styles */

/* General Styles */
.wizard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdfa 100%);
}

/* Header */
.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #166534;
    font-size: 1.5rem;
    font-weight: 700;
}

    .brand i {
        font-size: 1.75rem;
    }

.login-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
}

    .login-link strong {
        color: #22c55e;
    }

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

/* Progress Steps */
.progress-container {
    background: white;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.step.active .step-icon,
.step.completed .step-icon {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
}

.step.active .step-label,
.step.completed .step-label {
    color: #22c55e;
    font-weight: 600;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

    .step-connector.active {
        background: #22c55e;
    }

.progress-bar {
    max-width: 500px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

    .wizard-step.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    margin: 0 auto;
    padding: 2rem;
}
.registration.step-content{
    width:50%;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .step-header h1 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 0.5rem;
    }

    .step-header p {
        color: #6b7280;
        font-size: 1rem;
    }

/* Account Type Cards */
.account-type-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

    .account-type-cards.compact {
        gap: 0.75rem;
        max-width: 600px;
    }

.type-card {
    cursor: pointer;
}

    .type-card input {
        display: none;
    }

    .type-card .card-body {
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 16px;
        padding: 2rem;
        text-align: center;
        transition: all 0.2s ease;
    }

.account-type-cards.compact .type-card .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    border-radius: 12px;
    position: relative;
}

.type-card:hover .card-body {
    border-color: #22c55e;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
}

.type-card input:checked + .card-body,
.type-card.selected .card-body {
    border-color: #22c55e;
    background: linear-gradient(to bottom, #f0fdf4, white);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.account-type-cards.compact .card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    margin: 0;
    font-size: 1.25rem;
}

.card-icon.farmer {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.card-icon.buyer {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.card-icon.vet {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.card-icon.feed-supplier {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.account-type-cards.compact .card-text {
    flex: 1;
    min-width: 0;
}

    .account-type-cards.compact .card-text h3 {
        font-size: 0.9375rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0 0 0.125rem;
    }

    .account-type-cards.compact .card-text p {
        font-size: 0.8125rem;
        color: #6b7280;
        margin: 0;
        line-height: 1.4;
    }

.card-check {
    display: none;
    color: #22c55e;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.type-card.selected .card-check,
.type-card input:checked ~ .card-body .card-check {
    display: block;
}

.type-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.type-card .card-body > p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.benefits {
    list-style: none;
    text-align: left;
}

    .benefits li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #4b5563;
        padding: 0.375rem 0;
    }

    .benefits i {
        color: #22c55e;
        font-size: 0.75rem;
    }

/* Form Card */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

    .form-group:last-child {
        margin-bottom: 0;
    }

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
    }

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper i:first-child {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        pointer-events: none;
        z-index: 1;
        width: 1rem;
        text-align: center;
    }

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3.25rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.15s ease;
    background: white;
}

.input-wrapper .form-input {
    padding-left: 3.25rem !important;
}

.form-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-select {
    padding-left: 3.25rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

.field-error {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

.field-hint {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

/* Password Strength Styles */
.password-wrapper .form-input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
}

    .toggle-password:hover {
        color: #6b7280;
    }

.password-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

    .strength-bars .bar {
        width: 40px;
        height: 4px;
        background: #e5e7eb;
        border-radius: 2px;
        transition: background 0.2s ease;
    }

.strength-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.password-strength.weak .bar:nth-child(1) {
    background: #ef4444;
}

.password-strength.weak .strength-text {
    color: #ef4444;
}

.password-strength.fair .bar:nth-child(1),
.password-strength.fair .bar:nth-child(2) {
    background: #f59e0b;
}

.password-strength.fair .strength-text {
    color: #f59e0b;
}

.password-strength.good .bar:nth-child(1),
.password-strength.good .bar:nth-child(2),
.password-strength.good .bar:nth-child(3) {
    background: #22c55e;
}

.password-strength.good .strength-text {
    color: #22c55e;
}

.password-strength.strong .bar {
    background: #22c55e;
}

.password-strength.strong .strength-text {
    color: #22c55e;
}

.password-requirements {
    list-style: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

    .password-requirements li {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8125rem;
        color: #6b7280;
        padding: 0.25rem 0;
    }

        .password-requirements li i {
            font-size: 0.5rem;
            color: #d1d5db;
        }

        .password-requirements li.valid {
            color: #22c55e;
        }

            .password-requirements li.valid i {
                color: #22c55e;
            }

.password-match {
    font-size: 0.75rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .password-match.match {
        color: #22c55e;
    }

    .password-match.no-match {
        color: #ef4444;
    }

/* Terms Section */
.terms-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

    .checkbox-wrapper input {
        width: 20px;
        height: 20px;
        accent-color: #22c55e;
        margin-top: 2px;
    }

.checkbox-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

    .checkbox-text a {
        color: #22c55e;
        text-decoration: none;
    }

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

/* Navigation */
.wizard-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.btn-back {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

    .btn-back:hover {
        background: #f9fafb;
        border-color: #d1d5db;
    }

.btn-next,
.btn-submit {
    background: #22c55e;
    color: white;
    min-width: 160px;
}

    .btn-next:hover,
    .btn-submit:hover:not(:disabled) {
        background: #16a34a;
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 2rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Footer */
.wizard-footer {
    padding: 1.5rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: auto;
}

/* Livestock Specific Styles */
.farming-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.farming-type-option {
    cursor: pointer;
}

    .farming-type-option input {
        display: none;
    }

    .farming-type-option .option-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 1.25rem;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        transition: all 0.2s ease;
    }

        .farming-type-option .option-content i {
            font-size: 1.5rem;
            color: #6b7280;
        }

        .farming-type-option .option-content span {
            font-size: 0.875rem;
            font-weight: 500;
            color: #374151;
        }

    .farming-type-option:hover .option-content {
        border-color: #22c55e;
        background: #f0fdf4;
    }

    .farming-type-option input:checked + .option-content {
        border-color: #22c55e;
        background: #f0fdf4;
    }

        .farming-type-option input:checked + .option-content i {
            color: #22c55e;
        }

/* Livestock Types Grid */
.livestock-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.livestock-checkbox {
    cursor: pointer;
}

    .livestock-checkbox input {
        display: none;
    }

    .livestock-checkbox .checkbox-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        transition: all 0.2s ease;
        text-align: center;
        position: relative;
    }

    .livestock-checkbox .livestock-icon {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .livestock-checkbox .checkbox-content > span {
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
    }

    .livestock-checkbox:hover .checkbox-content {
        border-color: #22c55e;
        background: #f0fdf4;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .livestock-checkbox input:checked + .checkbox-content {
        border-color: #22c55e;
        background: linear-gradient(to bottom, #f0fdf4, white);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    }

        .livestock-checkbox input:checked + .checkbox-content::after {
            content: '✓';
            position: absolute;
            top: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            background: #22c55e;
            color: white;
            border-radius: 50%;
            font-size: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.product-checkbox {
    cursor: pointer;
}

    .product-checkbox input {
        display: none;
    }

    .product-checkbox span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 0.8125rem;
        font-weight: 500;
        color: #374151;
        transition: all 0.15s ease;
    }

        .product-checkbox span i {
            color: #9ca3af;
        }

    .product-checkbox:hover span {
        border-color: #22c55e;
        background: #f0fdf4;
    }

    .product-checkbox input:checked + span {
        border-color: #22c55e;
        background: #f0fdf4;
        color: #166534;
    }

        .product-checkbox input:checked + span i {
            color: #22c55e;
        }

/* Selling Methods Grid */
.selling-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.selling-checkbox {
    cursor: pointer;
}

    .selling-checkbox input {
        display: none;
    }

    .selling-checkbox span {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.875rem 1rem;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 10px;
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
        transition: all 0.15s ease;
        justify-content: center;
    }

        .selling-checkbox span i {
            color: #9ca3af;
        }

    .selling-checkbox:hover span {
        border-color: #22c55e;
        background: #f0fdf4;
    }

    .selling-checkbox input:checked + span {
        border-color: #22c55e;
        background: #f0fdf4;
        color: #166534;
    }

        .selling-checkbox input:checked + span i {
            color: #22c55e;
        }

/* Toggle Options */
.checkbox-group {
    margin-bottom: 1rem;
}

.toggle-option {
    display: flex;
    cursor: pointer;
}

    .toggle-option input {
        display: none;
    }

    .toggle-option .toggle-content {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: #f9fafb;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        flex: 1;
        transition: all 0.15s ease;
    }

        .toggle-option .toggle-content i {
            font-size: 1.5rem;
            color: #9ca3af;
        }

        .toggle-option .toggle-content strong {
            display: block;
            font-size: 0.875rem;
            color: #1f2937;
            margin-bottom: 0.125rem;
        }

        .toggle-option .toggle-content span {
            font-size: 0.75rem;
            color: #6b7280;
        }

    .toggle-option:hover .toggle-content {
        border-color: #22c55e;
        background: #f0fdf4;
    }

    .toggle-option input:checked + .toggle-content {
        border-color: #22c55e;
        background: #f0fdf4;
    }

        .toggle-option input:checked + .toggle-content i {
            color: #22c55e;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .progress-steps {
        display: none;
    }

    .account-type-cards {
        grid-template-columns: 1fr;
    }

        .account-type-cards.compact {
            grid-template-columns: 1fr;
            gap: 0.5rem;
        }

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

    .step-content {
        padding: 1.5rem 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .wizard-nav {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .btn-back {
        order: 2;
    }

    .farming-type-grid {
        grid-template-columns: 1fr;
    }

    .livestock-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .selling-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
