@import url('assets/material-symbols.css');

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/poppins-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/poppins-medium.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("assets/fonts/poppins-semibold.woff2") format("woff2");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#0f172a);
    color: #333;
}


.container {
    margin: 0 15px;
}

.form-box {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.form-box.active {
    display: block;
}

.form-logo-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.form-logo {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0;
    object-fit: contain;
}

h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 20px;
}

input,
select {
    width: 100%;
    padding: 12px;
    background: #eee;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.login-field {
    position: relative;
}

.login-field input {
    padding-left: 42px;
}

.login-field .field-icon {
    position: absolute;
    top: 0;
    left: 14px;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 46px;
    color: #667788;
    font-size: 16px;
    pointer-events: none;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 46px;
}

.password-field .toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #777;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-field .toggle-password:hover {
    background: transparent;
    color: #ea580c;
}

.forgot-password-help {
    display: grid;
    justify-items: end;
    gap: 3px;
    margin: -8px 0 18px;
    color: #ea580c;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
}

.forgot-password-trigger {
    width: auto;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #ea580c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.forgot-password-trigger:hover {
    background: transparent;
    text-decoration: underline;
}

.forgot-password-trigger:focus-visible,
.reset-request-dialog button:focus-visible,
.reset-request-dialog input:focus-visible {
    outline: 3px solid rgba(234, 88, 12, 0.35);
    outline-offset: 2px;
}

.reset-request-dialog {
    width: min(440px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 26px;
    overflow-y: auto;
    border: 0;
    border-radius: 10px;
    color: #334155;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
}

.reset-request-dialog::backdrop {
    background: rgba(15, 23, 42, 0.58);
}

.reset-request-dialog h2 {
    margin-bottom: 12px;
    font-size: 24px;
}

.reset-request-dialog p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.reset-request-dialog label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.reset-request-dialog input:not([type="hidden"]) {
    margin-bottom: 12px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.reset-request-dialog .password-suggestion-control {
    display: grid;
    gap: 7px;
}

.reset-request-dialog .password-suggestion-control input {
    margin-bottom: 0;
}

.reset-request-dialog .password-suggestion-control button {
    justify-self: start;
    width: auto;
    padding: 8px 10px;
    font-size: 13px;
}

.reset-request-dialog .password-suggestion-control p {
    min-height: 1em;
    margin: 0;
    color: #475569;
    font-size: 12px;
}

.reset-request-dialog .password-suggestion-control p[data-error="true"] {
    color: #b91c1c;
}

.reset-request-dialog .reset-request-status {
    min-height: 1.4em;
    margin-bottom: 10px;
    color: #166534;
    font-weight: 500;
}

.reset-request-dialog .reset-request-status[data-error="true"] {
    color: #b91c1c;
}

.reset-request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.reset-request-actions button {
    width: auto;
    min-width: 112px;
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
}

.reset-request-actions .reset-request-cancel {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.reset-request-actions .reset-request-cancel:hover {
    background: #f1f5f9;
}

button {
    width: 100%;
    padding: 12px;
    background: #ea580c;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    transition: 0.5s;
}

button:hover {
    background: #f97316;    
}

p {
    font-size: 14.5px;
    text-align: center;
    margin-bottom: 10px;
}

.terms-text {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin: 14px auto 0;
}

p a {
    color: #ea580c;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}