/* custom-login.css */
.custom-form {
    /*     max-width: 400px; */
    width: 22rem;
    margin: 20px auto;
    padding: 20px;
    /*    background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background: #005177;
}

#resend-code {
    background: #666;
    transition: background-color 0.3s ease;
}

#resend-code:hover:not(:disabled) {
    background: #444;
}

#resend-code.timer-ended:hover {
    background-color: #0c3dcc !important;
}

.custom-toast {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Changed from right to left for RTL */
    padding: 12px 24px;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.2s ease-in-out;
    direction: rtl; /* Added RTL direction */
    text-align: right; /* RTL text alignment */
    min-width: 200px;
    max-width: 90vw; /* Responsive width */
    word-wrap: break-word; /* Handle long text */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    line-height: 1.5;
}

/* Toast states */
.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast.success {
    background-color: #4caf50;
}

.custom-toast.error {
    background-color: #f44336;
}

.custom-toast.info {
    background-color: #2196f3;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .custom-toast {
        left: 50%; /* Center horizontally */
        bottom: 60px !important;
        transform: translateX(-50%) translateY(100%);
        min-width: auto; /* Allow narrower width on mobile */
        width: 90%; /* Take up most of the screen width */
        max-width: 400px; /* Maximum width on mobile */
    }

    .custom-toast.show {
        transform: translateX(-50%) translateY(-20%);
    }
}

/* Support for multiple toasts */
.custom-toast + .custom-toast {
    margin-bottom: 10px;
}

.back-button {
    border: none !important;
    padding: 8px 16px;
    margin-top: 2rem;
    cursor: pointer;
    border-radius: 5px !important;
    width: 100% !important;
    background: transparent!important;
    color: #9c9c9c !important;
}

.verify-message {
    margin-bottom: 1rem;
    text-align: center;
    color: #828282;
    font-size: 13px;
}