@import url(variables.css);

@font-face {
    font-family: 'Century Gothic';
    src: url('Century Gothic.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    /* Ensures body takes full screen height */
    flex-direction: column;
}

/* Header Section */
header {
    background-image: url(../images/banner.png);
    background-size: cover;
    background-repeat: no-repeat;
    height: clamp(100px, 20vh, 200px);
    /* Responsive header height */
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: -10px;
    font-family: helvetica;
    flex-direction: column;
    justify-content: flex-start;
    background-position: center top;
}

header img {
    width: clamp(160px, 30%, 240px);
    /* Responsive logo width */
    height: auto;
    filter: drop-shadow(0px 0px 9px rgba(255, 255, 255, 1));
}

/* Content Section */
.content {
    width: 90%;
    max-width: 360px;
    padding: 20px;
    border-radius: 0;
    text-align: center;
    margin-top: 0px;
}

.content img {
    width: 60%;
    margin-bottom: 20px;
}

.content span {
    color: #143055;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 20px;
    display: block;
}

.content input[type="text"] {
    width: calc(50% - 22px);
    padding: 10px;
    margin: 10px 0;
    font-size: 18px;
    border: none;
    border-radius: 25px;
    background: #1278e1 !important;
    color: #FFF !important;
    text-align: center;
    outline: none;
    font-weight: bold;
    font-family: Century Gothic, sans-serif;
    letter-spacing: 1px;
}

/* Autofill Styling – Chrome, Edge, Opera */
.content input[type="text"]:-webkit-autofill,
.content input[type="text"]:-webkit-autofill:hover,
.content input[type="text"]:-webkit-autofill:focus,
.content input[type="text"]:-webkit-autofill:active {
    -webkit-text-fill-color: #FFF !important;
    font-weight: bold !important;
    letter-spacing: 1px !important;
    text-align: center !important;

    /* Force background override */
    -webkit-box-shadow: 0 0 0 1000px #1278e1 inset !important;
    box-shadow: 0 0 0 1000px #1278e1 inset !important;

    border-radius: 25px !important;
    transition: background-color 5000s ease-in-out 0s;
    /* prevents flashing */
}

/* For other browsers (Firefox ignores autofill styling mostly) */
.content input:-internal-autofill-selected {
    background-color: #1278e1 !important;
    color: #FFF !important;
}

input#mobileNumber::placeholder {
    color: #FFF;
}

/* Placeholder Styling */
.content input[type="text"]::placeholder {
    color: #FFF;
    font-weight: 100;
}

/* Pin Input Container */
.pin-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Spacing between circles */
}

.pin-input {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background-color: transparent;
    margin: 0 4px;
    padding: 0;
    outline: none;
    transition: all 0.25s ease-in-out;
    font-size: 50px;
    /* Subtle inner shadow like the design */
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    color: #1278e1;
}

/* When filled → solid blue dot + outer white glow */
.pin-input.filled {
    background-color: #1278e1;
    border-color: #1278e1;

    /* Outer glow to match UI */
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Pin Text Style */
.text-1 {
    font-size: 14px !important;
    color: #FFF !important;
    font-family: Century Gothic, sans-serif;
    font-weight: bold;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.5));
}

/* Keypad Layout */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.75) !important;
    width: 110%;
    margin-left: -18px;
}

.keypad button {
    background: transparent;
    width: 100%;
    padding: 20px;
    font-size: 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #1278e1;
    font-weight: bold;
    font-family: 'Century Gothic', sans-serif;
}

.content sub {
    color: #807e7e;
    font-size: 14px;
}

.content div a {
    text-decoration: none;
    color: #FFF;
}

.content sub a:hover {
    text-decoration: underline;
}

/* Float Helpers */
.left {
    float: left;
    position: relative;
}

.right {
    float: right;
    position: relative;
}