:root {
    /* --light: #f8f9fa; */
    /* --dark: #212529; */
    --border: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
}

.form-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 600;
}

.form-title h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-title p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.form-grp {
    margin-bottom: 20px;
}

.form-grp label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
}

.form-control {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    color: var(--tg-heading-color) !important;
    border: 1px solid #e1e1e1 !important;
    background: var(--tg-common-color-white) !important;
    -webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    -o-border-radius: 5px !important;
    -ms-border-radius: 5px !important;
    border-radius: 5px !important;
    line-height: 1 !important;
    -webkit-transition: all 0.3s ease-out 0s !important;
    -moz-transition: all 0.3s ease-out 0s !important;
    -ms-transition: all 0.3s ease-out 0s !important;
    -o-transition: all 0.3s ease-out 0s !important;
    transition: all 0.3s ease-out 0s !important;
}

.form-control:focus {
    border-color: var(--tg-theme-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-light {
    background-color: var(--tg-theme-primary);
    color: white;
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s;
}

.btn-light:hover {
    background-color: #e9ecef;
}

.otp-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.otp-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.action-buttons .btn {
    flex: 1;
}

.resend-otp {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.resend-otp a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.account-switch {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.account-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 8px;
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e9ecef;
    transition: all 0.3s;
}

.step.active {
    background: var(--primary);
    width: 25px;
    border-radius: 5px;
}

.is-invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}
.is-invalids {
    border-color: var(--bs-form-invalid-border-color) !important;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .auth-body {
        padding: 25px 20px;
    }

    .otp-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
