@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

/* =========================================
MINEDER AUTHENTICATION — LOGIN
========================================= */

:root {
--auth-ivory: #FAF8F2;
--auth-white: #FFFFFF;
--auth-teal: #0F766E;
--auth-teal-light: #14B8A6;
--auth-teal-dark: #103D39;
--auth-orange: #C65D32;
--auth-peach: #F4E2D5;
--auth-text: #172B2A;
--auth-muted: #64716F;
--auth-border: #E1E7E1;
--auth-transition: 180ms ease;
}

*,
*::before,
*::after {
box-sizing: border-box;
}

html {
min-width: 320px;
min-height: 100%;
scroll-behavior: smooth;
}

body.auth-page {
min-width: 320px;
min-height: 100vh;
margin: 0;
background: var(--auth-ivory);
color: var(--auth-text);
font-family: "DM Sans", sans-serif;
-webkit-font-smoothing: antialiased;
}

.auth-page a {
color: inherit;
text-decoration: none;
}

.auth-page button,
.auth-page input {
font: inherit;
}

.auth-page button:focus-visible,
.auth-page a:focus-visible,
.auth-page input:focus-visible {
outline: 3px solid rgba(20, 184, 166, 0.45);
outline-offset: 4px;
}

/* =========================================
MAIN SPLIT-SCREEN LAYOUT
========================================= */

.auth-layout {
display: grid;
grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
min-height: 100vh;
}

/* =========================================
BRAND PANEL
========================================= */

.auth-brand-panel {
position: relative;
isolation: isolate;
display: flex;
flex-direction: column;
justify-content: space-between;
min-width: 0;
overflow: hidden;
padding: 44px clamp(35px, 5.5vw, 84px) 32px;
background:
radial-gradient(
circle at 100% 80%,
rgba(20, 184, 166, 0.14),
transparent 35%
),
var(--auth-teal-dark);
color: var(--auth-ivory);
}

.auth-logo,
.auth-mobile-logo a {
position: relative;
z-index: 2;
display: inline-flex;
align-items: center;
width: fit-content;
}

.auth-logo img,
.auth-mobile-logo img {
display: block;
width: 80px;
max-width: 100%;
height: auto;
object-fit: contain;
}


.auth-brand-content {
position: relative;
z-index: 1;
max-width: 510px;
margin: auto 0;
padding: 80px 0;
}

.auth-overline {
display: inline-block;
margin-bottom: 27px;
color: #F0B18F;
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.17em;
line-height: 1.8;
}

.auth-brand-content h1 {
margin: 0;
color: var(--auth-ivory);
font-family: "DM Serif Display", serif;
font-size: clamp(4rem, 7vw, 7.2rem);
font-weight: 400;
line-height: 0.98;
letter-spacing: -0.055em;
}

.auth-brand-content h1 span {
display: block;
color: #F0B18F;
font-style: italic;
}

.auth-brand-description {
max-width: 370px;
margin: 32px 0 0;
color: rgba(250, 248, 242, 0.76);
font-size: 0.96rem;
line-height: 1.9;
}



/* BRAND DECORATION */


/* =========================================
FORM PANEL
========================================= */

.auth-form-panel {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
padding: 55px clamp(28px, 6vw, 100px);
background:
radial-gradient(
circle at 100% 0%,
rgba(244, 226, 213, 0.36),
transparent 30%
),
var(--auth-ivory);
}

.auth-form-wrapper {
width: 100%;
max-width: 420px;
margin: auto;
}

.auth-mobile-logo {
display: none;
}

.auth-heading {
margin-bottom: 35px;
}

.auth-eyebrow {
display: inline-block;
margin-bottom: 16px;
color: var(--auth-orange);
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.16em;
}

.auth-heading h2 {
margin: 0 0 10px;
color: var(--auth-text);
font-family: "DM Serif Display", serif;
font-size: clamp(2.8rem, 4vw, 3.7rem);
font-weight: 400;
line-height: 1.05;
letter-spacing: -0.045em;
}

.auth-heading > p {
margin: 0;
color: var(--auth-muted);
font-size: 0.9rem;
line-height: 1.8;
}

/* =========================================
FORM FIELDS
========================================= */

.auth-form {
display: flex;
flex-direction: column;
gap: 24px;
}

.form-group {
min-width: 0;
}

.form-group > label,
.form-label-row > label {
display: block;
margin-bottom: 10px;
color: var(--auth-text);
font-size: 0.79rem;
font-weight: 600;
}

.form-label-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
margin-bottom: 10px;
}

.form-label-row > label {
margin-bottom: 0;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
display: block;
width: 100%;
min-width: 0;
min-height: 54px;
padding: 0 16px;
border: 1px solid var(--auth-border);
border-radius: 9px;
background: rgba(255, 255, 255, 0.78);
color: var(--auth-text);
font-size: 0.84rem;
outline: none;
transition:
border-color var(--auth-transition),
background var(--auth-transition),
box-shadow var(--auth-transition);
}

.auth-form input::placeholder {
color: #929D99;
opacity: 1;
}

.auth-form input:hover {
border-color: #B6CBC4;
}

.auth-form input:focus {
border-color: var(--auth-teal);
background: var(--auth-white);
box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.09);
}

.forgot-password {
color: var(--auth-teal);
font-size: 0.72rem;
font-weight: 600;
transition: color var(--auth-transition);
}

.forgot-password:hover {
color: var(--auth-orange);
}

/* =========================================
PASSWORD VISIBILITY
========================================= */

.password-input-wrapper {
position: relative;
display: flex;
align-items: center;
}

.password-input-wrapper input {
padding-right: 75px !important;
}

.password-toggle {
position: absolute;
right: 13px;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 42px;
min-height: 36px;
padding: 5px;
border: 0;
border-radius: 5px;
background: transparent;
color: var(--auth-teal);
font-size: 0.75rem;
font-weight: 700;
cursor: pointer;
transition:
color var(--auth-transition),
background var(--auth-transition);
}

.password-toggle:hover {
background: rgba(15, 118, 110, 0.07);
color: var(--auth-orange);
}

/* =========================================
REMEMBER ME
========================================= */

.remember-row {
display: flex;
align-items: center;
justify-content: flex-start;
margin-top: -5px;
}

.remember-label {
display: inline-flex;
align-items: center;
gap: 10px;
color: var(--auth-muted);
font-size: 0.79rem;
cursor: pointer;
}

.remember-label input {
width: 16px;
height: 16px;
margin: 0;
accent-color: var(--auth-teal);
cursor: pointer;
}

/* =========================================
SUBMIT BUTTON
========================================= */

.auth-submit {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
width: 100%;
min-height: 54px;
margin-top: 2px;
padding: 0 19px;
border: 1px solid var(--auth-teal);
border-radius: 9px;
background: var(--auth-teal);
color: var(--auth-white);
font-size: 0.84rem;
font-weight: 700;
cursor: pointer;
transition:
background var(--auth-transition),
border-color var(--auth-transition),
box-shadow var(--auth-transition),
transform var(--auth-transition);
}

.auth-submit:hover {
border-color: var(--auth-teal-dark);
background: var(--auth-teal-dark);
box-shadow: 0 8px 22px rgba(15, 118, 110, 0.15);
transform: translateY(-1px);
}

.auth-submit:active {
transform: translateY(0);
}

.auth-submit-arrow {
font-size: 1.1rem;
font-weight: 400;
transition: transform var(--auth-transition);
}

.auth-submit:hover .auth-submit-arrow {
transform: translate(2px, -2px);
}

.auth-form-message {
margin: -10px 0 0;
color: var(--auth-muted);
font-size: 0.8rem;
line-height: 1.7;
}

.auth-form-message:empty {
display: none;
}

/* =========================================
REGISTER LINK
========================================= */

.auth-register {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 6px;
margin-top: 29px;
padding-top: 25px;
border-top: 1px solid var(--auth-border);
color: var(--auth-muted);
font-size: 0.8rem;
line-height: 1.7;
text-align: center;
}

.auth-register a {
color: var(--auth-teal);
font-weight: 700;
transition: color var(--auth-transition);
}

.auth-register a:hover {
color: var(--auth-orange);
}

/* =========================================
FORM FOOTER
========================================= */

.auth-form-bottom {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 11px;
margin-top: 38px;
color: #87928E;
font-size: 0.56rem;
font-weight: 700;
letter-spacing: 0.12em;
}

.auth-bottom-dot {
width: 4px;
height: 4px;
border-radius: 50%;
background: var(--auth-orange);
}

/* =========================================
TABLET
========================================= */

@media (max-width: 1000px) {


.auth-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.auth-brand-panel {
    padding: 35px 35px 28px;
}

.auth-brand-content h1 {
    font-size: clamp(3.8rem, 7vw, 5.8rem);
}


.auth-form-panel {
    padding: 45px 35px;
}


}

/* =========================================
MOBILE
========================================= */

@media (max-width: 700px) {


.auth-layout {
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.auth-brand-panel {
    min-height: auto;
    padding: 25px 7% 35px;
}

.auth-logo img {
    width: 62px;
    height: 48px;
}

.auth-brand-content {
    padding: 48px 0 20px;
}

.auth-overline {
    margin-bottom: 17px;
    font-size: 0.59rem;
}

.auth-brand-content h1 {
    font-size: clamp(3.5rem, 12vw, 5rem);
}

.auth-brand-description {
    max-width: 390px;
    margin-top: 18px;
    font-size: 0.86rem;
}


.auth-decoration {
    right: -100px;
    bottom: -80px;
    width: 220px;
    height: 220px;
}

.auth-form-panel {
    padding: 48px 7% 35px;
}

.auth-form-wrapper {
    max-width: 460px;
}

.auth-heading {
    margin-bottom: 29px;
}

.auth-heading h2 {
    font-size: 3rem;
}

.auth-form {
    gap: 22px;
}

.auth-form-bottom {
    margin-top: 30px;
}


}

/* =========================================
SMALL MOBILE
========================================= */

@media (max-width: 380px) {


.auth-brand-panel {
    padding-inline: 6%;
}

.auth-brand-content h1 {
    font-size: 3.3rem;
}

.auth-form-panel {
    padding-inline: 6%;
}

.form-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}


}

/* =========================================
ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {


*,
*::before,
*::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}


}
