@import "fonts.css";

.error {
    color: var(--color-error);
}

.success {
    color: var(--color-success);
}

.black-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-fg);
    background: transparent;
    color: var(--color-fg);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.black-btn:hover {
    background: var(--color-fg);
    color: var(--color-bg);
}

.form-field {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

.form-field label {
    font-size: 0.9rem;
}

.form-field input, .form-field input:focus, .form-field textarea {
    outline: none;
    border: none;
    border-bottom: 1px solid var(--color-fg);
    display: block;
    height: 3rem;
    padding: 0.5rem;
    width: 100%;
}

.form-field textarea {
    height: 10rem;
    border: 1px solid var(--color-fg);
}

.form-field input:focus {
    border-bottom: 2px solid var(--color-fg);
}

.form-field textarea:focus {
    border: 2px solid var(--color-fg);
}

.form-field .password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-field .toggle-password {
    position: absolute;
    right: 24px;
    padding-left: 10px;
    border-left: 1px solid var(--color-grey-dark)!important;
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.form-field .icon-wrapper {
    position: relative;
}

.form-field .toggle-password svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
}

.form-field .toggle-password svg.open {
    display: none;
}

.form-field .toggle-password svg path {
    fill: var(--color-grey-dark)!important;
}

.toast-wrapper {
    position: fixed;
    bottom: 3rem;
    right: 1rem;
    right: 1rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    padding: 1rem 0.5rem 1rem 1.25rem;
    min-width: 250px;
    max-width: 320px;
    color: var(--color-fg);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
    align-items: flex-start;
    border-radius: 0;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--color-grey);
}

.toast.error {
    background: var(--color-grey);
}

.toast .close-btn {
    margin-left: auto;
    top: 0.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 0.4rem;
    color: var(--color-fg);
    cursor: pointer;
    transition: opacity 0.2s;
}

.toast .close-btn:hover {
    opacity: 1;
}

.form-field.options {
    gap: 10px;
}

.form-field .option-block {
    display: flex;
    align-items: center;
    background: var(--color-grey-light);
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-grey);
    border-radius: 0;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease;
    position: relative;
}

.form-field .option-block:hover {
    border-color: var(--color-fg);
    background: var(--color-bg);
}

.form-field .option-label {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--color-fg);
}

.form-field .custom-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-field .custom-radio-circle {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--color-grey-dark);
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.5rem;
    position: relative;
}

.form-field .custom-radio:checked + .custom-radio-circle {
    border-color: var(--color-fg);
    background: var(--color-fg);
}

form .error {
    font-size: 1rem;
}

.required {
    color: var(--color-error);
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.custom-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: var(--color-bg);
	border: none;
	border-bottom: 1px solid var(--color-fg);
	padding: 0.5rem;
	height: 3rem;
	width: 100%;
	font-size: 1rem;
	cursor: pointer;
}

.custom-select select:focus {
	border-bottom: 2px solid var(--color-fg);
	outline: none;
}

.custom-select {
	position: relative;
}

.custom-select::after {
	content: "▼";
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.7rem;
	color: var(--color-grey-dark);
	pointer-events: none;
}

.custom-scrollbar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-fg) var(--color-grey);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--color-grey);
    border-radius: 0;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--color-grey);
    border-radius: 0;
    border: 2px solid var(--color-fg);
}

.form-info {
    font-size:0.9rem;
    color:var(--color-grey-dark);
}