@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400&display=swap');

:root {
	--navy: #10141d;
	--cyan: #08b4e8;
	--ink: #142448;
	--line: #364253;
	--white: #ffffff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Nunito Sans', sans-serif;
	background: var(--navy);
	color: var(--white);
}

button,
input {
	font: inherit;
}

.login-cont {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
	min-height: 100vh;
	overflow: hidden;
}

.left-sec {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 42px clamp(24px, 5vw, 82px);
	color: var(--ink);
	background:
		radial-gradient(circle at 15% 20%, rgba(8, 180, 232, .10), transparent 28%),
		radial-gradient(circle at 85% 80%, rgba(117, 112, 246, .13), transparent 28%),
		#f5faff;
	overflow: hidden;
	isolation: isolate;
	background-image: url("../images/bgimage.png");
	background-repeat: no-repeat;
	background-size: cover;
}


.logo {
	position: absolute;
	top: 34px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	white-space: nowrap;
}

.form-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 54px clamp(28px, 6vw, 96px);
	background:
		radial-gradient(circle at 100% 0%, rgba(8, 180, 232, .08), transparent 32%),
		var(--navy);
}

.form-card {
	width: min(100%, 460px);
}

.web-title {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 6%;
	color: #66cfee;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.web-title::before {
	content: "";
	width: 23px;
	height: 2px;
	border-radius: 3px;
	background: var(--cyan);
}


.inp-field {
	margin-bottom: 21px;
}

.input-wrap {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 17px;
	top: 50%;
	transform: translateY(-50%);
	width: 19px;
	height: 19px;
	color: #7e8da2;
	pointer-events: none;
}

.inp-field input {
	width: 100%;
	height: 56px;
	border: 1px solid #3b4657;
	border-radius: 10px;
	outline: none;
	padding: 0 48px;
	color: #f6f9ff;
	background: #151a24;
	transition: border-color .2s, box-shadow .2s, background .2s;
}

.inp-field input::placeholder {
	color: #77869b;
}

.inp-field input:focus {
	border-color: var(--cyan);
	background: #171e29;
	box-shadow: 0 0 0 4px rgba(8, 180, 232, .12);
}

.toggle-password {
	position: absolute;
	top: 50%;
	right: 13px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 7px;
	color: #8c9bb0;
	background: transparent;
	cursor: pointer;
}

.toggle-password:hover {
	color: var(--cyan);
	background: rgba(255, 255, 255, .05);
}

.form-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 26px;
	font-size: 13px;
}

a {
	color: #6dcdf0;
	text-decoration: none;
}

a:hover {
	color: #b4ecff;
	text-decoration: underline;
}

.login-btn {
	width: 100%;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 750;
	letter-spacing: .07em;
	background: linear-gradient(100deg, #08b4e8, #079bd7);
	box-shadow: 0 9px 24px rgba(8, 180, 232, .18);
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, filter .2s;
}

.login-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 13px 28px rgba(8, 180, 232, .25);
}

.login-btn:active {
	transform: translateY(0);
}
/* Circular spinner */
.btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
}

/* Loading state */
.login-btn.loading {
    opacity: 0.85;
    cursor: wait;
    pointer-events: none;
}

.login-btn.loading .btn-spinner {
    display: inline-block;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
	display: flex;
	align-items: center;
	gap: 15px;
	margin: 32px 0 20px;
	color: #8290a4;
	font-size: 11px;
	letter-spacing: .17em;
	white-space: nowrap;
}

.divider::before,
.divider::after {
	content: "";
	height: 1px;
	flex: 1;
	background: #354051;
}

.socials {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.social-link {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid #354153;
	border-radius: 10px;
	color: #8291a6;
	background: #151a24;
	transition: .2s ease;
}

.social-link:hover {
	border-color: var(--cyan);
	color: var(--cyan);
	background: rgba(8, 180, 232, .08);
	transform: translateY(-3px);
	text-decoration: none;
}

.bottom-note {
	margin-top: 38px;
	color: #68768a;
	font-size: 12px;
	text-align: center;
}

@media (max-width: 900px) {
	.login-cont {
		grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
	}

	.left-sec {
		padding: 36px 25px;
	}

	.logo {
		top: 27px;
	}

	.form-panel {
		padding: 42px 34px;
	}
}

@media (max-width: 700px) {
	.login-cont {
		grid-template-columns: 1fr;
	}

	.left-sec {
		min-height: 60px;
		padding: 0;
		background: #fff;

	}

	.logo {
		position: relative;
		top: auto;
		left: auto;
		transform: none;
		justify-content: center;
	}
	.logo img{
		width: 60%;
	}
	.web-title{
		font-size: 14px;
	}
	.form-panel {
		padding: 38px 24px 34px;
	}

	.form-card {
		max-width: 460px;
	}

	.subtitle {
		margin-bottom: 27px;
	}

	.bottom-note {
		margin-top: 28px;
	}
}

@media (max-width: 380px) {
	.form-panel {
		padding-inline: 18px;
	}

	.form-options {
		font-size: 12px;
	}

	.social-link {
		width: 39px;
		height: 39px;
	}
}

