/**************************************
	
	Template Name: Repress Secure PIN UI
	Template URL: https://www.repress.com.ng
	Description: A sleek and responsive PIN input interface with fingerprint support and keypad interaction. All colors are managed with CSS root variables for easy customization.
	Author: Repress Telecommunication 
	Author URL: https://admin.repress.com.ng
	Version: 1.0 

**************************************/

/* 1. GLOBAL RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Oswald', sans-serif;
}

/* 2. ROOT VARIABLES */
:root {
	--bg-color: #ffffff;
	--primary-color: #0056b3;
	--text-color: #222;
	--subtext-color: #555;
	--keypad-bg: #e9eeff;
	--keypad-hover: #dde5ff;
	--button-hover: #4b4ffe;
	--special-key-bg: #0056b3;
	--special-key-color: #fff;
	--notify-bg: #dbe8ff;
	--notify-text: #003380;
	--notify-border: #0056b3;
}

/* 3. LAYOUT */
body {
	background-color: var(--bg-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 100vh;
	padding: 20px 10px;
}


/* 4.1 Logo */
.logo img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	margin: 30px 0;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 4.2 Typography */
h2 {
    text-transform: uppercase;
    font-size: 13px;
	font-weight: 600;
	color: var(--text-color);
}

/* 4.2 Typography */
p {
    font-size: 12px;
	color: var(--subtext-color);
}

.btn-secondary {
    font-size: 13px !important;
    background-color: var(--primary-color) !important;
}

.btn {
    font-size: 13px !important;
}

.skip-btn {
    display: flex;
    justify-content: flex-end;
    width: 100%;
	font-weight: 700;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.skip-btn:hover {
    color: var(--subtext-color);
    text-decoration: underline;
}

small,
.small {
    font-size: 11px;   /* small size */
    line-height: 1.2;
}

/* 4.3 Pin Boxes */
.pin-boxes {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 25px;
	width: 100%;
}

.pin-box {
	flex: 1;
	width: 50px;
	height: 50px;
	border: 2px solid var(--primary-color);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: bold;
	color: var(--primary-color);
}



/* 4.5 Actions Section */
.action {
	font-size: 13px;
	text-align: center;
	width: 100%;
}

/* 4.5 Actions Section */
.actions {
	margin-top: auto;
	font-size: 14px;
	text-align: center;
	width: 100%;
}

.actions span {
	color: #000;
}

.divider {
    margin: 0 10px;
    color: #888;
    font-size: 16px;
    font-weight: 500;
}

.actions a {
	color: var(--primary-color);
	text-decoration: none;
	margin: 0 5px;
	display: inline-block;
}

.keypad {
    
    width: 100%; 
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 80px); 
    justify-content: center;
    gap: 18px; 
    padding: 15px 0;
}

.key {      
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--keypad-bg);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.key:hover {
	background-color: var(--keypad-hover);
}

.key:active {
	transform: scale(0.96);
}

.key.special {
	background-color: var(--special-key-bg);
	color: var(--special-key-color);
	font-weight: 700;
}

/* Responsive improvements */
@media (max-width: 480px) {
	.keypad {
		gap: 10px;
		padding: 15px 0;
	}

	.key {
		font-size: 12px;
		border-radius: 10px;
	}
}


/* 4.7 Overlay Animation */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 1;
	transition: opacity 1s;
}

.logo-overlay {
	width: 120px;
	height: 120px;
	animation: scaleLogo 1s ease-out infinite alternate;
}

@keyframes scaleLogo {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(0.8);
	}
}

/* 4.8 Notification Banner */
.notification {
	background-color: var(--notify-bg);
	color: var(--notify-text);
	border-left: 5px solid var(--notify-border);
	padding: 13px 18px;
	width: calc(100% - 40px);
	max-width: 450px;
	display: none;
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 8px;
	font-size: 12px;
	z-index: 9999;
}

.notification .close-btn {
	position: absolute;
	right: 15px;
	top: 12px;
	font-size: 15px;
	cursor: pointer;
	color: var(--notify-text);
}

.input-container {
	width: 100%;
	max-width: 400px;
	margin-top: 10px;
}

input.form-control {
	width: 100%;
	border-radius: 50px;
	border: none;
	border-bottom: 2px solid #ccc;
	border-left: 2px solid #ccc;
	padding: 10px 15px;
	background: #fff;
	font-size: 12px;
	color: var(--primary-color);
	transition: border-color 0.3s ease;
	box-shadow: none !important;
	height: 40px;
    line-height: 40px;
}

input.form-control:focus {
	outline: white;
	border-bottom: 2px solid var(--primary-color);
	border-left: 2px solid var(--primary-color);
	box-shadow: 0 0 0 2px var(--primary-color);
}

.btn-primary {
    background-color: var(--special-key-bg);
    color: var(--special-key-color);
    font-size: 12px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: none;
    outline: none;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: normal;
}


.btn-primary:hover {
	background-color: var(--button-hover);
}

.btn-primary:active {
	transform: scale(0.98);
}

/* 5. RESPONSIVE */
@media (max-width: 480px) {
	.pin-box {
	    font-size: 13px;
		width: 40px;
		height: 45px;
	}
	.keypad {
		gap: 10px;
		padding: 15px 0;
	}

	.key {
		font-size: 12px;
		border-radius: 10px;
		aspect-ratio: 1.05 / 1; 
	}
}

/* =====================================
   📱 EXTRA RESPONSIVE FIXES (400px)
===================================== */
@media (max-width: 400px) {

	.notification {
		max-width: none;
		width: 95%;
		font-size: 12px;
		padding: 12px 15px;
	}

	.keypad {
		gap: 8px;
	}

	.key {
		font-size: 16px;
		aspect-ratio: 1 / 1;
		border-radius: 8px;
	}

	input.form-control {
		font-size: 12px;
		padding: 10px 14px;
		border-radius: 40px;
	}

	.btn-primary {
		font-size: 13px;
		padding: 12px 10px;
		border-radius: 8px;
	}

	.pin-box {
		max-width: 40px;
		height: 40px;
		font-size: 13px;
	}

	.actions {
		font-size: 11px;
	}
}

/* =====================================
   📱 SUPER SMALL DEVICES (330px)
===================================== */
@media (max-width: 330px) {

	.notification {
		width: 98%;
		font-size: 11px;
	}

	.key {
		font-size: 15px;
		aspect-ratio: 1.2 / 1;
	}

	input.form-control {
		font-size: 13px;
	}

	.btn-primary {
		font-size: 14px;
		padding: 10px;
	}

	.pin-box {
		max-width: 40px;
		height: 40px;
		font-size: 13px;
	}

	.actions {
		font-size: 11px;
	}
}
