﻿/* =================================================
   ACCOUNT TYPE (STEP 1)
================================================= */

.account-type-wrapper {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.account-card {
    cursor: pointer;
    position: relative;
}

    .account-card input {
        display: none;
    }

.account-card-inner {
    border-radius: 24px;
    border: 2px solid #e7e7ef;
    padding: 28px 20px;
    text-align: center;
    transition: all .25s ease;
    background: #fafafe;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

    .account-card-inner:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,.06);
    }

.account-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .account-image img {
        max-height: 160px;
        width: auto;
    }

.account-btn {
    margin-top: 20px;
    height: 48px;
    border-radius: 28px;
    background: #ececf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: #777;
    transition: all .25s ease;
}

/* selected */

.account-card input:checked + .account-card-inner {
    border-color: #5B57D6;
    background: #f2f1fd;
    box-shadow: 0 12px 32px rgba(91,87,214,.15);
}

    .account-card input:checked + .account-card-inner .account-btn {
        background: #5B57D6;
        color: #fff;
    }

/* =================================================
   MOBILE ACCOUNT GRID
================================================= */

@media (max-width:600px) {

    .account-type-wrapper {
        gap: 14px;
    }

    .account-card-inner {
        padding: 18px 12px;
    }

    .account-image {
        height: 140px;
    }

        .account-image img {
            max-height: 120px;
        }
}

/* =================================================
   STEP HEADER
================================================= */

.register-steps-header {
    margin-bottom: 6px;
    text-align: center;
}

.step-progress {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 15px auto 0;
}

.step-line {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: #e7e7f3;
    transition: all .25s ease;
}

    .step-line.active {
        background: #5B57D6;
        box-shadow: 0 2px 8px rgba(91,87,214,.4);
    }

/* =================================================
   STEP WRAPPER
================================================= */

.register-step {
    display: none;
    animation: fade .35s ease;
    padding: 40px 0;
}

    .register-step.active {
        display: block;
    }

.step-card h4 {
    margin-bottom: 18px;
}

/* =================================================
   STEP CARD
================================================= */

.step-card {
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    padding: 24px;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,.06);
    border: 1px solid #f0f0f5;
}

@media (min-width:1400px) {
    .step-card {
        max-width: 480px;
    }
}

/* =================================================
   AVATAR
================================================= */

.step-avatar-wrapper {
    margin-bottom: 12px;
}

.step-avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    background: #f3f2fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .step-avatar img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.register-avatar-img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    padding: 15px;
    background: #F4F2FA;
    border: 3px solid #5B57D6;
    box-shadow: 0 0 0 8px rgba(91,87,214,.15);
    object-fit: contain;
}

/* =================================================
   INPUTS (FLUTTER STYLE)
================================================= */

.flutter-field {
    margin-bottom: 12px;
}

    .flutter-field input {
        width: 100%;
        height: 56px;
        border-radius: 40px;
        padding: 0 20px;
        background: #f6f6fc;
        border: 1px solid #e6e6ef;
        font-size: 14px;
        transition: all .2s ease;
    }

        .flutter-field input:focus {
            border-color: #5B57D6;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(91,87,214,.1);
        }

/* =================================================
   PASSWORD FIELD
================================================= */

.password-item {
    position: relative;
}

html[dir="rtl"] .password-item input {
    padding-left: 50px;
}

html[dir="ltr"] .password-item input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #777;
}

html[dir="rtl"] .toggle-password {
    left: 18px;
}

html[dir="ltr"] .toggle-password {
    right: 18px;
}

.toggle-password:hover {
    color: #5B57D6;
}

/* =================================================
   PHONE INPUT
================================================= */

.phone-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.phone-field {
    flex: 1;
    position: relative;
}

    .phone-field input {
        width: 100%;
        height: 56px;
        border-radius: 40px;
        padding: 0 50px 0 20px;
    }

.phone-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #5B57D6;
}

.country-field {
    width: 110px;
}

    .country-field select {
        width: 100%;
        height: 56px;
        border-radius: 20px;
        text-align: center;
    }

/* =================================================
   BUTTONS
================================================= */

.register-step .tf-btn {
    min-width: 140px;
    height: 48px;
    border-radius: 30px;
}

/* =================================================
   VALIDATION
================================================= */

.form-control.is-invalid {
    border-color: #e74c3c !important;
    background: #fff5f5;
}

.form-control.is-valid {
    border-color: #2ecc71 !important;
}

.text-danger.small {
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* =================================================
   ANIMATION
================================================= */

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
