.authhandler-modal .modal-content .modal-body form {
	margin-bottom: 1rem;
}

.authhandler-modal .modal-content {
	background-color: #fff;
	border-radius: 0.5rem;
	overflow: hidden;
}

.authhandler-modal .modal-header.authhandler-feedback-error {
	background-color: #dc3545;
	color: #fff;
}

.authhandler-modal .modal-header.authhandler-feedback-success {
	background-color: #198754;
	color: #fff;
}

.authhandler-feedback-success, .authhandler-feedback-error {
	background-color: transparent;
	color: inherit;
}

#authhandler-feedback-modal .modal-body {
	font-size: 1rem;
}

.modal-body {
	padding-top: 0.5rem;
	padding-bottom: 0;
	background-color: #fff;
}

.authhandler-modal {
	border-radius: 0.5rem;
}

.authhandler-modal.submitting .modal-content {
	filter: grayscale(0.8) brightness(0.95);
	pointer-events: none;
}

.authhandler-notice {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #212529;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.authhandler-notice:first-of-type {
    margin-top: 0;
}

.authhandler-notice:has(.authhandler-persistent-login) {
	margin-bottom: 0;
}

.authhandler-notice p {
    margin: 0;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.authhandler-notice p:last-of-type {
    margin-bottom: 0;
}

.authhandler-notice.authhandler-error-notice {
	background-color: #f8d7da;
	color: #842029;
	border: 1px solid #f5c2c7;
	border-left: 4px solid #842029;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	margin-bottom: 0.5rem;
}

.authhandler-notice.authhandler-success-notice {
	background-color: #d1e7dd;
	color: #0f5132;
	border: 1px solid #badbcc;
	border-left: 4px solid #0f5132;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	margin-bottom: 0.5rem;
}

.authhandler-button {
	display: inline-block;
	padding: 0.65rem;
    margin: 0.25rem;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 6px;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	min-height: 44px;
    border: 1.5px solid transparent;
    min-width: 200px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: background-color 0.2s ease-in-out;
	background-color: #0d6efd;
	color: white;
}

.authhandler-button:hover {
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	background-color: #0b5ed7;
}

.authhandler-input {
	margin-bottom: 0.5rem;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

.authhandler-input:focus {
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.authhandler-form-button {
    display: block;
	padding: 0.65rem;
	font-weight: 500;
	font-size: 1rem;
	border-radius: 6px;
	margin-bottom: 0.5rem;
	text-align: center;
	cursor: pointer;
	box-sizing: border-box;
	min-height: 44px;
    border: 1.5px solid transparent;
    min-width: 200px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: background-color 0.2s ease-in-out;
	background-color: #0d6efd;
	color: white;
	width: 100%;
}

.authhandler-form-button:last-of-type {
	margin-bottom: 0;
}

.authhandler-form-button:hover {
	background-color: #0b5ed7;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.authhandler-provider-buttons {
	display: flex;
	flex-direction: column;
	margin-top: 0;
}

.authhandler-provider-buttons > .authhandler-notice {
	margin-top: 0.5rem;
}

.authhandler-provider-button {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1.5px solid transparent;
	margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
	min-height: 44px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease-in-out;
}

.authhandler-provider-button:last-of-type {
	margin-bottom: 0;
}

.authhandler-provider-button:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.authhandler-provider-google:hover {
	background-color: #f1f1f1;
	color: #444;
	border-color: #bbb;
}

.authhandler-provider-facebook {
	background-color: #145dbf;
	color: white;
	border-color: #145dbf;
}

.authhandler-provider-facebook:hover {
    background-color: #0d4a9c;
    color: white;
    border-color: #0d4a9c;
}

.authhandler-provider-icon {
    flex: 0 0 26%; 
    height: 20px;
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 12px;
}

.authhandler-provider-buttontext {
    flex: 1;
    text-align: left;
}

.authhandler-provider-icon-google {
    background-image: url('./images/google.png');
}

.authhandler-provider-icon-facebook {
    background-image: url('./images/facebook.png');
}

.authhandler-code-box {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 1rem;
}

.authhandler-code-digit {
	width: 3rem;
	height: 3rem;
	font-size: 1.5rem;
	text-align: center;
	border: 2px solid #e0cccc;
	border-radius: 0.25rem;
}

.authhandler-suggestion {
	margin-top: 8px;
	padding: 0;
}

.auth-suggestion-btn {
	background-color: transparent;
	border: 1px dashed #dc3545;
	color: #842029;
	background-color: #fff;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	width: 100%;
}

.auth-suggestion-btn:hover {
	background-color: #842029;
	color: #fff;
}

.auth-suggestion-btn.regular {
	color: #0f5132;
	border-color: #0f5132;
}

.auth-suggestion-btn.regular:hover {
	background-color: #0f5132;
	color: #fff;
}

#recaptcha-container {
	margin: 0.5rem 0;
	display: flex;
	justify-content: center;
}

@media (max-width: 575.98px) {
    .authhandler-provider-icon {
        flex: 0 0 20%; 
    }
}

.authhandler-persistent-login {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #212529;
}

.authhandler-persistent-login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0d6efd;
	border-radius: 4px;
	cursor: pointer;
}

.authhandler-persistent-login input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(13, 110, 253, 0.35);
	outline-offset: 2px;
}

.authhandler-persistent-label {
	user-select: none;
	font-size: 0.95rem;
	cursor: pointer;
}

