﻿/* ===== ACCOUNT LAYOUT STYLES ===== */

/* Main Account Container */
.auth-container {
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
/*
.auth-container form {

}*/

/* Auth Card */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 640px;
    width: 100%;
    overflow: hidden;
    border: none;
}

/* Auth Icon */
.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 32px;
    color: white;
}

    .auth-icon.bg-business {
        background: linear-gradient(135deg, #0d6a11 0%, #00582e 100%);
    }

    .auth-icon.bg-partner {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }

    .auth-icon.bg-admin {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .auth-icon.bg-individual {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    }

/* Form Sections */
.section-header {
    margin-bottom: 20px;
}

    .section-header h6 {
        color: #344767;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .section-header hr {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, #e9ecef 0%, transparent 100%);
        margin: 8px 0 0 0;
    }

/* Input Groups - Material Design Style */
.input-group-dynamic {
    position: relative;
    margin-bottom: 24px;
}

    .input-group-dynamic .form-control {
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 16px 12px 8px 12px;
        font-size: 14px;
        color: #495057;
        transition: all 0.3s ease;
        height: auto;
    }

        .input-group-dynamic .form-control:focus {
            background-color: #ffffff;
            border-color: #0d6a11;
            box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
            outline: none;
        }

        .input-group-dynamic .form-control:not(:placeholder-shown),
        .input-group-dynamic .form-control:focus {
            padding-top: 20px;
            padding-bottom: 8px;
        }

    .input-group-dynamic .form-label {
        position: absolute;
        top: 50%;
        left: 12px;
        transform: translateY(-50%);
        color: #6c757d;
        font-size: 14px;
        font-weight: 400;
        transition: all 0.3s ease;
        pointer-events: none;
        background: transparent;
        z-index: 2;
    }

    .input-group-dynamic .form-control:focus + .form-label,
    .input-group-dynamic .form-control:not(:placeholder-shown) + .form-label {
        top: 8px;
        font-size: 12px;
        font-weight: 500;
        color: #0d6a11;
        transform: translateY(0);
    }

    /* Select Styling */
    .input-group-dynamic select.form-control {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px 12px;
    }

/* Validation Styles */
.text-danger.small {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.input-group-dynamic .form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

    .input-group-dynamic .form-control.is-invalid:focus {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, #0d6a11 0%, #00f2fe 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
    transition: all 0.3s ease;
}

    .btn-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
    }

.btn-outline-secondary {
    border: 1px solid #e9ecef;
    color: #6c757d;
    background: transparent;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-outline-secondary:hover {
        background-color: #f8f9fa;
        border-color: #dee2e6;
        color: #495057;
    }

.btn-primary {
    background-color: #0d6a11;
    border-color: #0d6a11;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #2b9afd;
        border-color: #2b9afd;
        transform: translateY(-1px);
    }

/* Form Check Styles */
.form-check {
    margin-bottom: 16px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

    .form-check-input:checked {
        background-color: #0d6a11;
        border-color: #0d6a11;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
        border-color: #0d6a11;
    }

.form-check-label {
    margin-left: 8px;
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fff5f5;
    color: #dc3545;
    color: #fff;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #f0fff4;
    color: #28a745;
    color: #fff;
    border-left: 4px solid #28a745;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0ea5e9;
    color: #fff;
    border-left: 4px solid #0ea5e9;
}

.alert-warning {
    background-color: #fffbf0;
    color: #f59e0b;
    color: #fff;
    border-left: 4px solid #f59e0b;
}

/* Package Selection Styles */
.packages-grid {
    margin-bottom: 32px;
}

.package-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .package-card:hover {
        border-color: #0d6a11;
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(79, 172, 254, 0.15);
    }

    .package-card.selected {
        border-color: #0d6a11;
        background: linear-gradient(135deg, #ffffff 0%, #f8fcff 100%);
        box-shadow: 0 8px 32px rgba(79, 172, 254, 0.2);
    }

.package-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.package-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0d6a11 0%, #00f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto;
}

.package-price {
    margin: 16px 0;
}

    .package-price .amount {
        font-size: 32px;
        font-weight: 700;
        color: #344767;
    }

    .package-price .currency,
    .package-price .period {
        font-size: 16px;
        color: #6c757d;
        font-weight: 500;
    }

.package-features ul {
    margin: 0;
    padding: 0;
}

.package-features li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #495057;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-item.active .step-circle {
    background-color: #0d6a11;
    color: white;
}

.step-item.completed .step-circle {
    background-color: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.step-item.active .step-label {
    color: #0d6a11;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #28a745;
}

.step-connector {
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

    .step-connector.completed {
        background-color: #28a745;
    }

.step-item:last-child .step-connector {
    display: none;
}

/* Document Upload Styles */
.document-upload-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
}

.document-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #ffffff;
}

    .upload-area:hover,
    .upload-area.drag-over {
        border-color: #0d6a11;
        background-color: #f8fcff;
    }

    .upload-area i {
        opacity: 0.6;
    }

/* Payment Method Styles */
.payment-methods .form-check {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

    .payment-methods .form-check:hover {
        border-color: #0d6a11;
        background-color: #f8fcff;
    }

.payment-methods .form-check-input:checked + .form-check-label {
    color: #0d6a11;
    font-weight: 600;
}

.credit-card-form {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

/* Step Navigation */
.step-navigation {
    border-top: 1px solid #e9ecef;
    padding-top: 24px;
    margin-top: 32px;
}

/* Text Utilities */
.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #0d6a11 !important;
}

.small {
    font-size: 12px;
}

/* Link Styles */
a {
    color: #0d6a11;
    text-decoration: none;
}

    a:hover {
        color: #2b9afd;
        text-decoration: underline;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 12px;
    }

    .auth-card {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }

    .packages-grid .col-md-4 {
        margin-bottom: 16px;
    }

    .progress-steps {
        padding: 0 10px;
    }

    .step-label {
        font-size: 10px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-connector {
        top: 16px;
    }
}

@media (max-width: 576px) {
    .row.g-3 > * {
        margin-bottom: 16px;
    }

    .input-group-dynamic .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
