@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Exo+2:wght@500&family=Russo+One&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }

body {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: url('../../img/background.jpg') center center / cover no-repeat fixed;
	padding: 24px 24px 24px 9vw;
	font-family: 'Poppins', sans-serif;
}

@media (max-width: 700px) {
	body {
		justify-content: center;
		padding: 24px;
	}
	.access-card {
		padding-left: 12px;
		padding-right: 12px;
		padding-bottom: 42px;
	}
	.login-flipper {
		min-height: 0;
	}
	.access-header {
		margin-left: -12px;
		margin-right: -12px;
	}
}

@keyframes overlayFade {
	from { opacity: 1; }
	to   { opacity: 0; }
}

#login-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.72);
	z-index: 0;
	pointer-events: none;
	animation: overlayFade .7s ease-in forwards;
}

@keyframes cardFlipInY {
	0%   { opacity: 0; transform: scaleX(0); }
	60%  { opacity: 1; transform: scaleX(1.04); }
	100% { opacity: 1; transform: scaleX(1); }
}

.access-card {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0,0,0,.35);
	overflow: hidden;
	width: 100%;
	max-width: 360px;
	padding: 28px 20px 20px;
	animation: cardFlipInY .5s ease-out 300ms both;
}

/* Header / branding */
.access-header {
	background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
	margin: -28px -20px 24px;
	padding: 18px 28px 11px;
	border-radius: 0;
}

.access-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-decoration: none;
}
.access-logo img { height: 40px; width: auto; }
.access-brand-name {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	margin-bottom: 1px;
}
.access-brand { display: flex; align-items: baseline; gap: 0; }
.access-brand-tagline {
	font-size: 10px;
	font-weight: 400;
	font-style: italic;
	color: rgba(255,255,255,.6);
	letter-spacing: .3px;
	margin-top: 1px;
}
.access-brand-snake { font-family: 'Exo 2', sans-serif; font-weight: 500; font-size: 20px; color: #fff; letter-spacing: .5px; }
.access-brand-zone  { font-family: 'Russo One', sans-serif; font-size: 24px; font-weight: 700; color: #7eee8b; letter-spacing: 2px; margin-bottom: -4px; }

.access-header h1 { font-size: 19px; font-weight: 600; color: #fff; margin-top: 6px; }
.access-header p  { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 3px; }

/* Alerts */
.access-alert {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 18px;
}
.access-alert--error   { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; }
.access-alert--success { background: #d4edda; color: #1b6e35; border: 1px solid #b8dfc4; }
.access-alert--info    { background: #e8f4fd; color: #1a6fa8; border: 1px solid #bee3f8; }

/* Form */
.access-form .form-group { margin-bottom: 12px; }

.access-form label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	margin-bottom: 3px;
}

.access-form input[type="text"],
.access-form input[type="email"],
.access-form input[type="password"] {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #d0d0d0;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Poppins', sans-serif;
	color: #222;
	background: #fff;
	transition: border-color .15s;
}
.access-form input:focus { outline: none; border-color: #2d6a4f; }
.access-form input::placeholder { color: #aaa; }

.access-forgot { text-align: right; margin-top: -4px; margin-bottom: 0; }
.access-forgot a { font-size: 12px; color: #999; text-decoration: none; }
.access-forgot a:hover { color: #2d6a4f; }

.access-remember { display: block; font-size: 13px; color: #666; margin-bottom: 12px; cursor: pointer; line-height: 1.4; }
.access-remember input[type="checkbox"] { width: 14px; height: 14px; accent-color: #2d6a4f; cursor: pointer; vertical-align: middle; margin-right: 0; position: relative; top: -1px; }

/* Buttons */
.access-btn {
	display: block;
	width: 100%;
	padding: 11px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	border: none;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	transition: background .18s;
}
.access-btn--primary { background: #2d6a4f; color: #fff; box-shadow: 0 4px 16px rgba(45,106,79,.4); }
.access-btn--primary:hover { background: #1b4332; }
.access-btn--secondary { background: #f0f0f0; color: #333; margin-top: 8px; }
.access-btn--secondary:hover { background: #e4e4e4; }
.access-btn--sm { width: auto; padding: 5px 14px; font-size: 12px; background: rgba(0,0,0,.1); color: inherit; }
.access-btn--sm:hover { background: rgba(0,0,0,.18); }

/* Divider */
.access-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0;
	color: #bbb;
	font-size: 12px;
}
.access-divider::before,
.access-divider::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; }

/* Google button wrapper — GIS renders its own button; we just center it */
.access-google-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 4px;
	overflow: hidden;
}


/* Card flip */
.login-flipper {
	perspective: 900px;
	min-height: 400px;
}
.login-flipper__inner {
	position: relative;
	height: 100%;
}
.login-flipper__front,
.login-flipper__back {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.login-flipper__back {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	display: none;
	flex-direction: column;
}
.login-about-top { margin-bottom: 16px; }
.login-about-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(90deg, #2d6a4f 0%, #52b788 40%, #2d6a4f 60%, #1b4332 100%);
    background-size: 250% 100%;
    color: #fff;
    animation: shine 3s linear infinite;
}
.login-about-link:hover { opacity: .85; text-decoration: none; }
.login-about-link i { font-size: 11px; }
@keyframes shine {
    0%   { background-position: 150% center; }
    100% { background-position: -100% center; }
}
.login-flip-back-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #2d6a4f;
	font-size: 13px;
	font-weight: 500;
	font-family: 'Poppins', sans-serif;
	padding: 0;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.login-flip-back-btn:hover { color: #1b4332; }
.login-about-content {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 8px;
	flex: 1;
}
.login-about-content .access-btn { margin-top: auto; }

/* Footer links */
.access-footer { text-align: center; margin-top: 14px; margin-bottom: 18px; font-size: 13px; color: #777; }
.access-footer a { color: #2d6a4f; text-decoration: none; font-weight: 500; }
.access-footer a:hover { text-decoration: underline; }
.access-footer p { margin-top: 6px; }

/* CookieYes color overrides */
.cky-btn-revisit-wrapper,
.cky-btn-revisit-wrapper button,
.cky-btn-revisit-wrapper .cky-btn-revisit,
.cky-revisit-bottom-left,
.cky-revisit-bottom-left button,
.cky-revisit-bottom-left .cky-btn-revisit { background-color: #1b4332 !important; border-color: #1b4332 !important; color: #fff !important; }
.cky-btn-revisit-wrapper svg, .cky-btn-revisit-wrapper path,
.cky-revisit-bottom-left svg, .cky-revisit-bottom-left path { fill: #fff !important; }
.cky-btn-accept { background-color: #1b4332 !important; border-color: #1b4332 !important; color: #fff !important; }
.cky-btn-accept:hover { background-color: #163828 !important; border-color: #163828 !important; color: #fff !important; }
.cky-btn-reject, .cky-btn-preferences { background-color: transparent !important; border-color: #1b4332 !important; color: #1b4332 !important; }
.cky-btn-reject:hover, .cky-btn-preferences:hover { background-color: #1b4332 !important; color: #fff !important; }
.cky-notice-btn-wrapper .cky-btn { background-color: #1b4332 !important; border-color: #1b4332 !important; color: #fff !important; }
[data-cky-tag="accept-button"], [data-cky-tag="detail-accept-button"] { background-color: #1b4332 !important; border-color: #1b4332 !important; color: #fff !important; }
[data-cky-tag="reject-button"], [data-cky-tag="detail-reject-button"], [data-cky-tag="detail-customize-button"] { background-color: transparent !important; border-color: #1b4332 !important; color: #1b4332 !important; }
