﻿@font-face {
    font-family: 'Vazir';
    src: url('/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

html {
    font-size: 12px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    color: #fff;
    text-align: center;
    font-family: 'Vazir', sans-serif;
}


#error-phone {
    color: red;
    margin-top: 10px;
    margin-left: 160px;
    font-size: 12px;
}

#resend {
    color: #888;
}

#back-container {
    font-size: 30px;
    cursor: pointer;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom Classes added */
.form-login {
    width: 100%;
    max-width: 450px;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
    /* mb-4 equivalent */
}

.logo-img {
    max-width: 200px;
}

.input-wrapper {
    position: relative;
    margin-top: 1.5rem;
}

    .input-wrapper input {
        width: 100%;
        padding: 0.75rem 0.75rem;
        font-size: 1rem;
        text-align: right;
        background-color: #4e4e4e;
        color: white;
        border: 1px solid gray;
        /* Gold-like border */
        border-radius: 8px;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .input-wrapper input:focus {
            border-color: #d4b373;
            /* lighter gold for focus */
        }

        .input-wrapper input::placeholder {
            color: white;
            opacity: 0.5;
            font-size: 12px;
            font-weight: 500;
        }

    .input-wrapper label {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: auto;
        left: 0.75rem;
        text-align: right;
        color: #fff;
        pointer-events: none;
        transition: all 0.2s ease;
        padding: 0 0.25rem;
        z-index: 1;
        font-weight: 500;
        font-size: 1rem;
    }

    /* Floating state with cutout effect */
    .input-wrapper input:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label {
        font-weight: 500;
        font-size: 0.95rem;
        transform: none;
        color: #bba57a;
        padding-right: 5px;
        padding-left: 5px;
    }

    .input-wrapper input:not(:focus) + label {
        color: #fff;
    }

    .input-wrapper input:focus {
        outline: none;
        box-shadow: none;
    }

    .input-wrapper input:-webkit-autofill,
    .input-wrapper input:-webkit-autofill:focus,
    .input-wrapper input:-webkit-autofill:hover,
    .input-wrapper input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0px 1000px #4e4e4e inset !important;
        box-shadow: 0 0 0px 1000px #4e4e4e inset !important;
        -webkit-text-fill-color: white !important;
        transition: background-color 5000s ease-in-out 0s;
    }

.verify-header {
    background-color: rgb(28, 28, 28);
    border-radius: 3px;
}

#back-container {
    font-size: 30px;
    cursor: pointer;
}

.otp-input {
    color: white;
    max-width: 50px;
    height: 60px;
    outline: 1px solid #888;
}

    .otp-input:focus {
        color: white;
        outline: 3px solid #d4b373;
        border: none;
        box-shadow: 0 0 0 0.1rem rgba(100, 149, 237, 0.25);
    }

.terms span {
    font-weight: 500;
}

.terms a {
    text-decoration: none;
    font-weight: 700;
}

#phone-container button {
    font-weight: 700;
}

/* Style the input and phone display nicely */
#user-phone {
    font-size: 1.25rem;
    color: #858585;
    user-select: none;
}

#phone-input {
    font-size: 1.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Style button for full width in its column */
.link-button {
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

    .link-button:hover {
        background-color: #3b3b3b;
    }

    .link-button:focus,
    .link-button:active {
        outline: none;
        border: none;
        color: purple;
    }

.verify-help p {
    margin-bottom: 0.5rem;
}

h5 {
    font-weight: bold;
}

.link-button {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #bba57a;
    font-weight: 600;
    user-select: none;
}

    .link-button:hover,
    .link-button:focus-visible {
        text-decoration: none;
        outline: none;
        color: white;
        background-color: black;
    }

.code-inputs-container {
    display: flex;
    flex-direction: row-reverse;
    /* visually reverses the order */
    justify-content: center;
    gap: 1rem;
}

#resend {
    color: #bba57a;
}

/* Modern Toastr Styles - Matching Your Site Theme */
.toast-container {
    pointer-events: none;
    direction: rtl; /* RTL support for Persian text */
}

.toast {
    position: relative;
    top: 15px;
    pointer-events: auto;
    background: rgba(78, 78, 78, 0.75); /* Matches your #4e4e4e */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 179, 115, 0.3); /* Your gold color with transparency */
    border-radius: 8px; /* Matches your input border-radius */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    margin-bottom: 12px;
    font-family: 'Vazir', sans-serif; /* Your custom font */
    font-size: 14px; /* Matches your @media font-size */
    line-height: 1.4;
    color: #fff; /* Your body text color */
    max-width: 350px;
    min-height: 50px;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
    text-align: right; /* RTL text alignment */
    direction: rtl;
    opacity: 1 !important;
}

    .toast:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
        border-color: rgba(212, 179, 115, 0.5); /* Brighter gold on hover */
    }

/* Success Toast */
.toast-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(78, 78, 78, 0.95) 100%);
    border-right: 4px solid #22c55e; /* Right border for RTL */
    border-left: none;
    color: #bbf7d0; /* Light green for dark theme */
}

    .toast-success::before {
        content: "✓";
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #22c55e;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-weight: bold;
        margin-left: 12px; /* Left margin for RTL */
        margin-right: 0;
        flex-shrink: 0;
        float: right; /* Float right for RTL */
    }

/* Error Toast */
.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(78, 78, 78, 0.95) 100%);
    border-right: 4px solid #ef4444; /* Right border for RTL */
    border-left: none;
    color: #fecaca; /* Light red for dark theme */
}

    .toast-error::before {
        content: "✕";
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #ef4444;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-weight: bold;
        margin-left: 12px; /* Left margin for RTL */
        margin-right: 0;
        flex-shrink: 0;
        float: right; /* Float right for RTL */
    }

/* Warning Toast */
.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(78, 78, 78, 0.95) 100%);
    border-right: 4px solid #f59e0b; /* Right border for RTL */
    border-left: none;
    color: #fed7aa; /* Light orange for dark theme */
}

    .toast-warning::before {
        content: "⚠";
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #f59e0b;
        color: white;
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-weight: bold;
        margin-left: 12px; /* Left margin for RTL */
        margin-right: 0;
        flex-shrink: 0;
        float: right; /* Float right for RTL */
    }

/* Info Toast - Using Your Gold Theme */
.toast-info {
    background: linear-gradient(135deg, rgba(212, 179, 115, 0.2) 0%, rgba(78, 78, 78, 0.95) 100%);
    border-right: 4px solid #d4b373; /* Your gold color, right border for RTL */
    border-left: none;
    color: #d4b373; /* Your gold color */
}

    .toast-info::before {
        content: "ℹ";
        display: inline-block;
        width: 20px;
        height: 20px;
        background: #d4b373; /* Your gold color */
        color: #4e4e4e; /* Your dark background for contrast */
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-weight: bold;
        margin-left: 12px; /* Left margin for RTL */
        margin-right: 0;
        flex-shrink: 0;
        float: right; /* Float right for RTL */
    }

/* Close Button */
.toast-close-button {
    position: absolute;
    top: 8px;
    left: 8px; /* Left position for RTL */
    right: auto;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .toast-close-button:hover {
        color: #d4b373; /* Your gold color on hover */
    }

/* Animation for slide in from right (RTL) */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation for slide out to right (RTL) */
@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.toast-closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Toast Title */
.toast-title {
    font-weight: 700; /* Matches your button font-weight */
    margin-bottom: 6px;
    font-size: 14px;
    color: #fff;
}

.toast-message {
    font-weight: 500; /* Matches your terms span font-weight */
    opacity: 0.9;
    clear: both; /* Clear the float from ::before pseudo-element */
    padding-top: 4px;
}

/* Progress Bar (if using toastr with progress) */
.toast-progress {
    position: absolute;
    bottom: 0;
    right: 0; /* Right for RTL */
    left: auto;
    height: 2px;
    background-color: rgba(212, 179, 115, 0.6); /* Your gold color */
    border-radius: 0 0 8px 0;
    transition: width 0.1s ease;
}

/* Responsive adjustments matching your @media queries */
@media (max-width: 768px) {
    .toast {
        font-size: 12px; /* Matches your html font-size for smaller screens */
        max-width: 300px;
        margin: 8px;
        padding: 14px 18px;
    }

    .toast-title {
        font-size: 12px;
    }

    .toast::before {
        width: 18px;
        height: 18px;
        line-height: 18px;
        font-size: 10px;
        margin-left: 10px;
    }
}
