.modal-dialog { display: flex; align-items: center; justify-content: center; min-height: 100vh; margin: auto; } .close { background: none; border: none; outline: none; } .close span { display: block; color: #000; font-size: 24px; } .modal-content { background-color: white; color: #333; } .form-group label { color: #333; } .form-control { border: 1px solid #ccc; border-radius: 4px; } .form-group { position: relative; } .btn { width: 120px; height: 32px; display: flex; justify-content: center; align-items: center; line-height: 1; } #phone, #email { margin-bottom: 1.5rem; } .validation-message { position: absolute; bottom: -20px; left: 0; color: red; font-size: 0.8rem; visibility: hidden; } .validation-message.active { visibility: visible; } .btn-primary { background-color: #007bff; border-color: #007bff; } .btn-secondary { background-color: #6c757d; border-color: #6c757d; } .btn-primary:hover { background-color: #0056b3; } .btn-secondary:hover { background-color: #545b62; } .btn:active { transform: scale(0.95); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } .btn:focus { outline: none !important; box-shadow: none !important; } .modal-header, .modal-footer, .modal-body { padding: 16px !important; } .log-in-button-left { margin-right: auto; visibility: visible; } .log-in-button-left-hidden { visibility: hidden; } .modal-footer { display: flex; justify-content: flex-end; } .hidden { display: none; } @media (max-width: 320px) { .modal-dialog { max-width: 90%; margin: auto; } .modal-header, .modal-footer, .modal-body { padding: 6px !important; } .form-control { font-size: 0.85rem; padding: 0.375rem 0.75rem; } .btn { font-size: 0.85rem; width: 80px; height: 28px; display: flex; justify-content: center; align-items: center; line-height: 1; } #phone, #email { margin-bottom: 0.8rem; } } @media (min-width: 321px) and (max-width: 376px) { .modal-dialog { max-width: 300px; margin: auto; } .modal-header, .modal-footer, .modal-body { padding: 8px !important; } .form-control { font-size: 0.85rem; padding: 0.375rem 0.75rem; } .btn { font-size: 0.85rem; width: 70px; height: 28px; display: flex; justify-content: center; align-items: center; line-height: 1; } #phone, #email { margin-bottom: 1rem; } #phone-validation, #email-validation{ margin-top: -1rem; } } @media (min-width: 376px) and (max-width: 426px) { .modal-dialog { max-width: 300px; margin: auto; } .modal-header, .modal-footer, .modal-body { padding: 10px !important; } .form-control { font-size: 0.9rem; padding: 0.375rem 0.75rem; } .btn { font-size: 0.9rem; width: 80px; height: 28px; display: flex; justify-content: center; align-items: center; line-height: 1; } #phone, #email { margin-bottom: 1rem; } #phone-validation, #email-validation{ margin-top: -1rem; } } @media (min-width: 426px) and (max-width: 768px) { .modal-dialog { width: 60%; max-width: 400px; min-width: 330px; margin: auto; } .modal-header, .modal-footer, .modal-body { padding: 12px !important; } .form-control { font-size: 0.95rem; padding: 0.375rem 0.75rem; } .btn { font-size: 0.95rem; width: 100px; height: 30px; display: flex; justify-content: center; align-items: center; line-height: 1; } #phone, #email { margin-bottom: 1.3rem; } #phone-validation, #email-validation{ margin-top: -1.3rem; } } @media (min-width: 426px) and (max-width: 582px) { .btn { font-size: 0.95rem; width: 80px !important; height: 28px !important; display: flex; justify-content: center; align-items: center; line-height: 1; } }