/*
    Created on : 3 Oct 2025, 20:42:57
    Author     : gasperrencof
*/

:root {
    --color-primary: #005f6c;
    --color-primary-container: #007a8a;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 0;
    color: #191c1d;
}


html, body {
    height: 100%;
}

h1, h2, h3, h4 {
    margin: 0;
}

a {
    text-decoration: none;
    color: #191c1d;
}

input {
    box-sizing: border-box;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    -webkit-user-select: none;
    line-height: 1;
}

/* ============================================================
   LOGIN PAGE — "The Clinical Atelier"
   ============================================================ */

.login-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafb;
    background-image: radial-gradient(#007a8a1a 1px, transparent 1px);
    background-size: 32px 32px;
}

/* --- Main centered area --- */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.login-wrapper {
    width: 100%;
    max-width: 448px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* --- Brand / Logo --- */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #005f6c, #007a8a);
    color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 10px 20px rgba(0, 95, 108, 0.2);
}
.login-brand-icon .material-symbols-outlined {
    font-size: 36px;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}

.login-brand-title {
    font-family: 'Manrope', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #007a8a;
    margin: 0;
}

.login-brand-subtitle {
    font-size: 10px;
    font-weight: 700;
    color: #536163;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* --- Glass Card --- */
.login-card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(25, 28, 29, 0.06);
    border-radius: 12px;
    padding: 40px;
}

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #191c1d;
    margin: 0;
}

.login-card-header p {
    font-size: 14px;
    color: #3e494b;
    margin: 4px 0 0;
}

/* --- Form --- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #536163;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 4px;
}

.login-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 4px;
}
.login-field-label-row .login-field-label {
    margin-left: 0;
}

.login-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: #007a8a;
    text-decoration: none;
}
.login-forgot-link:hover {
    text-decoration: underline;
    color: #007a8a;
}

/* Input wrapper */
.login-field-input-wrap {
    position: relative;
}

.login-field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6e797b;
    font-size: 20px;
    pointer-events: none;
}

.login-field-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(225, 227, 228, 0.5);
    border: none;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #191c1d;
    transition: background 0.2s, box-shadow 0.2s;
    height: auto;
}

.login-field-input-wrap input::placeholder {
    color: rgba(110, 121, 123, 0.6);
}

.login-field-input-wrap input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px #005f6c;
}

.login-input-password {
    padding-right: 48px !important;
}

/* Visibility toggle */
.login-visibility-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6e797b;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.login-visibility-btn:hover {
    color: #005f6c;
}
.login-visibility-btn .material-symbols-outlined {
    font-size: 20px;
}

/* Submit */
.login-submit-wrap {
    padding-top: 16px;
}

.login-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(to right, #005f6c, #007a8a);
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 95, 108, 0.2), 0 2px 4px -2px rgba(0, 95, 108, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
}
.login-submit-btn:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 95, 108, 0.3), 0 8px 10px -6px rgba(0, 95, 108, 0.3);
}
.login-submit-btn:active {
    transform: scale(0.98);
}
.login-submit-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Error */
.login-error {
    color: #ba1a1a;
    font-size: 13px;
    margin-top: 12px;
    display: none;
}

/* Registration — 2-column name row */
.login-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Registration success state */
.reg-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #005f6c, #007a8a);
    color: #fff;
    margin-bottom: 20px;
}
.reg-success-icon .material-symbols-outlined {
    font-size: 36px;
    font-variation-settings: 'FILL' 1;
}
.reg-success-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #191c1d;
    margin: 0 0 12px;
}
.reg-success-msg {
    font-size: 14px;
    color: #3e494b;
    line-height: 1.6;
    margin: 0;
}

/* Card bottom */
.login-card-bottom {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(189, 200, 203, 0.2);
    text-align: center;
}

.login-card-bottom p {
    font-size: 12px;
    color: #3e494b;
    margin: 0;
}

.login-card-bottom a {
    color: #007a8a;
    font-weight: 700;
    text-decoration: none;
}
.login-card-bottom a:hover {
    text-decoration: underline;
    color: #007a8a;
}

/* --- Help links --- */
.login-help-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}



.login-help-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3e494b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}


.login-help-link:hover {
    color: #007a8a;
}
.login-help-link .material-symbols-outlined {
    font-size: 18px;
}

.login-help-dot {
    width: 4px;
    height: 4px;
    background: #bdc8cb;
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Page footer --- */
.login-footer {
    display: flex;
    flex-direction: row;
        justify-content: center;
    align-items: center;
    align-items: center;
    padding: 24px 48px;
    background: #f2f4f5;
    font-size: 12px;
    letter-spacing: 0.025em;
}

.login-footer-copy {
    color: #64748b;
}

.login-footer-links {
    display: flex;
    gap: 24px;
}

.login-footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.login-footer-links a:hover {
    color: #007a8a;
}

/* --- Language switcher (login / register pages) --- */
.login-layout { position: relative; }

.login-lang {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(189, 200, 203, 0.45);
    border-radius: 8px;
    padding: 3px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20;
}
.login-lang-btn {
    background: none;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: background .12s, color .12s;
    letter-spacing: 0.4px;
    line-height: 1;
}
.login-lang-btn:hover { background: #f2f4f5; color: #3b494b; }
.login-lang-btn.active {
    background: #ffffff;
    color: #007a8a;
    box-shadow: 0 1px 3px rgba(25, 28, 29, 0.10);
}


.login-brand-logo{
    width: 200px;
}