* {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}

body {
min-height: 100dvh;

background:
linear-gradient(
rgba(0,0,0,0.55),
rgba(0,0,0,0.55)
),
url("/assets/img/background.png") center / cover no-repeat;

display: flex;
align-items: center;
justify-content: center;

padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
}

.login-container {
width: 100%;
padding: 24px 18px;
max-width: 420px;
margin: auto;
}

.login-card {
background: #ffffff;
border-radius: 22px;
padding: 28px 22px;
max-width: 420px;
width: 100%;
margin: 0 auto;

box-shadow:
0 12px 24px rgba(0,0,0,0.18),
0 30px 60px rgba(0,0,0,0.08);
}

.login-header {
text-align: center;
margin-bottom: 24px;
}

.app-logo {
display: block;
width: 100%;
max-width: 140px;
height: auto;
margin: 0 auto 12px;
}

.login-logo {
font-size: 26px;
font-weight: 600;
color: #0b7d6e;
margin-bottom: 4px;
}

.login-types {
display: flex;
gap: 10px;
margin-bottom: 22px;
}

.login-types label {
flex: 1;
text-align: center;
font-size: 14px;
color: #333;
padding: 10px 0;
border-radius: 12px;
background: #f2f4f4;
cursor: pointer;
user-select: none;
}

.login-types input {
display: none;
}

.login-types input:checked + span {
color: #0b7d6e;
font-weight: 600;
}

.login-fields {
margin-bottom: 16px;
position: relative;
}

.login-fields input {
width: 100%;
padding: 16px;
font-size: 17px;
border-radius: 14px;
border: 1px solid #d5d5d5;
background: #fff;
}

.login-fields input:focus {
outline: none;
border-color: #0b7d6e;
box-shadow: 0 0 0 2px rgba(11,125,110,0.15);
}

.password-field input {
padding-right: 50px;
}

.toggle-password {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 12px;
display: flex;
align-items: center;
justify-content: center;
}

.toggle-password svg {
width: 22px;
height: 22px;
fill: #7a7a7a;
}

.login-error {
color: #d32f2f;
font-size: 14px;
margin-bottom: 12px;
text-align: center;
}

.login-button {
width: 100%;
padding: 18px;
background: #0b7d6e;
color: #ffffff;
border: none;
border-radius: 18px;
font-size: 17px;
font-weight: 600;
cursor: pointer;
margin-top: 12px;
transition: background .2s ease;
}

.login-button:hover {
background:#09695c;
}

.login-button:active {
transform: scale(0.98);
}

.login-forgot {
margin-top: 20px;
text-align: center;
}

.login-forgot a {
font-size: 15px;
color: #0b7d6e;
text-decoration: none;
}

@media (min-width: 768px) {

.login-card {
padding: 36px 30px;
}

.app-logo {
max-width: 160px;
}

}

.app-loader {
position: fixed;
inset: 0;
background: rgba(255,255,255,0.95);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}

.app-loader svg {
width: 220px;
}

.app-loader path {
fill: none;
stroke: #0b7d6e;
stroke-width: 3;
stroke-dasharray: 500;
stroke-dashoffset: 500;
animation: ecg 1.4s linear infinite;
}

.hidden {
display: none;
}

@keyframes ecg {
to {
stroke-dashoffset: 0;
}
}