/* www/css/signin.css */

:root{
	--bg: #070A12;
	--card: rgba(255,255,255,.06);
	--card2: rgba(255,255,255,.09);
	--stroke: rgba(255,255,255,.12);
	--text: rgba(255,255,255,.92);
	--muted: rgba(255,255,255,.68);
	--muted2: rgba(255,255,255,.52);

	--accent: #7C5CFF;
	--accent2: #2EE9A6;

	--radius: 18px;
	--shadow: 0 25px 70px rgba(0,0,0,.55);
}



*{ box-sizing: border-box; }
html, body{ height: 100%; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    overflow: hidden;
    background-image: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);
}

/* Background / “app-like” layer */
.bg{
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.grid{
	position: absolute;
	inset: -40%;
	background-image:
		linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 54px 54px;
	transform: rotate(-10deg);
	opacity: .16;
	filter: blur(.2px);
	mask-image: radial-gradient(closest-side at 50% 45%, rgba(0,0,0,.9), rgba(0,0,0,.1) 55%, transparent 72%);
}

.blob{
	position: absolute;
	width: 520px;
	height: 520px;
	border-radius: 999px;
	filter: blur(38px);
	opacity: .55;
	mix-blend-mode: screen;
	transform: translate3d(0,0,0);
}

.blob--a {
    left: -120px;
    top: -120px;
    background: radial-gradient(circle at 30% 30%, rgb(255 255 255), rgba(124, 92, 255, .05) 60%, transparent 70%);
    animation: driftA 12s ease-in-out infinite;
}

.blob--b {
    right: -140px;
    top: 40px;
    background: radial-gradient(circle at 60% 30%, rgb(248 223 205), rgba(46, 233, 166, .06) 58%, transparent 70%);
    animation: driftB 14s ease-in-out infinite;
}

.blob--c{
	left: 10%;
	bottom: -180px;
	width: 680px;
	height: 680px;
	background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.25), rgba(124,92,255,.08) 40%, transparent 70%);
	opacity: .35;
	animation: driftC 16s ease-in-out infinite;
}

@keyframes driftA{
	0%,100%{ transform: translate(-10px, 0) scale(1); }
	50%{ transform: translate(70px, 40px) scale(1.06); }
}
@keyframes driftB{
	0%,100%{ transform: translate(0, 0) scale(1); }
	50%{ transform: translate(-80px, 60px) scale(1.08); }
}
@keyframes driftC{
	0%,100%{ transform: translate(0, 0) scale(1); }
	50%{ transform: translate(60px, -30px) scale(1.04); }
}

/* Layout */

.wrap{
	position: relative;
	height: 100%;
	display: grid;
	place-items: center;
	padding: 28px 16px;
}


.card {
    width: min(440px, 92vw);
    background: linear-gradient(180deg, rgb(255 255 255) 40%, rgb(224 212 197) 150%);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.card__header {
    /*padding: 22px 22px 10px;*/
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: white;
    padding: 30px 0;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.auth-logo img {
    max-width: 270px;
}

.brand{
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
}


.brand__title{
	font-weight: 700;
	letter-spacing: .2px;
	line-height: 1.1;
}
.brand__subtitle {
    margin-top: 13px;
    color: rgb(0 0 0);
    font-size: 25px;
    font-weight: 600;
}






/* Alerts */
.alert{
	margin: 14px 22px 0;
	padding: 12px 12px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,.12);
	color: rgba(255, 39, 39, 0.86);
	text-align: center;
}

/*
.alert--error{
	border-color: rgba(255, 90, 90, .35);
	background: rgba(255, 90, 90, .10);
}*/

.alert--success{
	border-color: rgba(46,233,166,.28);
	background: rgba(46,233,166,.10);
}

.errors{
	margin: 0;
	padding-left: 18px;
}
.errors li{
	margin: 4px 0;
	color: rgba(255, 0, 0, 0.88);
}

/* Form */
.form{
	padding: 18px 22px 22px;
	display: grid;
	gap: 14px;
}

.field{
	display: grid;
	gap: 7px;
}

.label {
    font-size: 13px;
    color: #7a7979;
}

.input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgb(246 221 209);
    background: rgb(255 255 255 / 70%);
    color: #000000;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .08s ease;
}

.input::placeholder{
	color: rgba(255,255,255,.34);
}

.input:focus{
	border-color: #ffcead;
	box-shadow: 0 0 0 5px rgba(251, 205, 205, 0.16);
}

.btn {
    margin-top: 6px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 999px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(to right, #b2b2b2, #efb7a0);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(180, 137, 70, 0.4);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    margin-bottom: 11px;
    border: 2px solid white;
}

.btn:hover{ filter: brightness(1.06); }
.btn:active{ transform: translateY(1px) scale(.995); }

.btn__chev{
	font-size: 18px;
	transform: translateY(-1px);
	opacity: .95;
}

.hint {
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    color: rgb(187 150 130);
}


.form__footer{
	display:flex;
	justify-content:center;
	margin-top: 4px;
	margin-bottom: 2px;
}

.forgot-link{
	font-size: 13px;
	color: rgb(187 150 130);
	text-decoration: none;
	font-weight: 600;
}

.forgot-link:hover{
	text-decoration: underline;
}


.footer{
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	color: rgba(255,255,255,.35);
	font-size: 12px;
}

/* Mobile tweaks */
@media (max-width: 420px){
	.card__header{ padding: 18px 18px 10px; }
	.form{ padding: 16px 18px 18px; }
	.alert{ margin-left: 18px; margin-right: 18px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
	.blob{ animation: none !important; }
}