/* Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1E5A94;
}

#logCheck,
label[for="logCheck"] {
  display: none;
}

.container {
    position: relative;
    max-width: 430px;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.container .forms{
    display: flex;
    align-items: center;
    width: 200%;
}

.container .form {
    width: 50%;
    padding: 30px;
}

.container .form .title {
    font-size: 27px;
    font-weight: 600;
    position: relative; /* Required for ::before */
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo img {
    width: 80px;
    height: auto;
}

/* Center the title */
.form.login .title {
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.form login{
    border-radius: 25%;
}

/* .form .title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 30px;
    background-color: #800000;
    border-radius: 25px;
} */

.form .input-field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 30px;
}

.input-field input {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 0 35px;
    border: none;
    outline: none;
    font-size: 16px;
    border-bottom: 2px solid #ccc;
    border-top: 2px solid transparent;
    transition: all 0.2s ease;
}

.input-field input:is(:focus, :valid){
    border-bottom-color: #1E5A94;
}

.input-field i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 23px;
}

.input-field input:is(:focus, :valid) ~ i{
    color: #1E5A94;
}

.input-field i.icon {
    left: 0;
}

.input-field i.showHidePw {
    right: 0;
}

.form .checkbox-text{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.checkbox-text .checkbox-content{
    display: flex;
    align-items: center;
}

.checkbox-content input{
    margin: 0 8px -2px 4px;
    accent-color: #1E5A94;
}

.form .text{
    color: #333;
    font-size: 14px;
}

.form a.text{
    color: #1E5A94;
    text-decoration: none;
}

.form a:hover{
    text-decoration: underline;
}

.form .button{
    margin-top: 35px;
}

.form .button input{
    border: none;
    color:#fff;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 6px;
    background-color: #1E5A94;
    cursor: pointer;
    transition:all 0.3s ease
}

.button input:hover{
    background-color: #1d64a7;
}

/* Style select to match inputs */
.input-field select {
    position: absolute;
    height: 100%;
    width: 100%;
    padding: 0 35px;           /* same as inputs */
    border: none;
    outline: none;
    font-size: 16px;
    border-bottom: 2px solid #ccc;
    border-top: 2px solid transparent;
    background-color: transparent;
    appearance: none;          /* removes default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Highlight border on focus/valid like input */
.input-field select:is(:focus, :valid) {
    border-bottom-color: #1E5A94;
}

/* Placeholder color (first disabled option) */
.input-field select option[disabled][selected] {
    color: #999;
}

/* Icon color change on focus */
.input-field select:is(:focus, :valid) ~ i {
    color: #1E5A94;
}

/* Optional: custom arrow inside select */
.input-field select::after {
    content: '\25BC'; /* down arrow */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #999;
    font-size: 12px;
}


.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    animation: pop 0.25s ease;
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 14px;
    color: #333;
}

.modal-content button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

/* Success Style */
.modal-content.success h3 {
    color: #28a745;
}
.modal-content.success button {
    background: #4070f4;
    color: #fff;
}

/*  Error Style */
.modal-content.error h3 {
    color: #dc3545;
}
.modal-content.error button {
    background: #dc3545;
    color: #fff;
}

/*  Animation */
@keyframes pop {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

