/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* FULL PAGE BACKGROUND IMAGE */
body,
html {
    height: 100%;
    background: url("background.jpg") no-repeat center center fixed;
    background-size: cover;
}

/* CONTAINER */
.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* LEFT SIDE */
.left-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    background: rgba(1, 42, 74, 0.6);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    width: 80%;
    animation: fadeInLeft 1.2s ease;
}

.overlay .logo {
    width: 120px;
    margin-bottom: 25px;
}

.overlay h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.overlay h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #cfd8dc;
}

.overlay p {
    font-size: 14px;
    color: #e0e0e0;
    opacity: 0.9;
}

/* RIGHT SIDE */
.right-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* REGISTER BOX */
.register-box {
    background: rgba(248, 249, 251, 0.75);
    width: 500px;
    max-width: 90%;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(1, 42, 74, 0.4);
    border: 2px solid rgba(1, 73, 124, 0.6);
    text-align: center;
    transform: translateY(20px);
}

.register-box h2 {
    color: #012a4a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* INPUTS & SELECT */
input,
select {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    border-color: #01497c;
    box-shadow: 0 0 10px rgba(1, 73, 124, 0.4);
}

/* BUTTON */
.btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(90deg, #012a4a, #01497c);
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(90deg, #01497c, #014f86);
    transform: scale(1.03);
}

/* REGISTER SECTION */
.register-section {
    margin-top: 15px;
    text-align: center;
    line-height: 1.1;
}

.register-section p {
    margin-bottom: 4px;
    color: #012a4a;
    font-size: 14px;
}

.register-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, #012a4a, #01497c);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background: linear-gradient(90deg, #01497c, #014f86);
    transform: scale(1.05);
}

/* USER FIELDS */
.user-fields {
    display: none;
    animation: fadeSlide 0.5s forwards;
}

/* PASSWORD FIELD WITH EYE ICON */
.password-wrapper,
.confirm-password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0px; /* tighter spacing below input */
}

.password-wrapper input,
.confirm-password-wrapper input {
    width: 100%;
    height: 48px; /* Added fixed height for better vertical centering of the eye icon */
    padding: 12px 40px 12px 12px; /* right padding for eye icon */
    font-size: 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
}

.toggle-password,
.toggle-confirm-password {
    position: absolute;
    right: 12px;
    top: 35%; /* vertical center relative to input */
    transform: translateY(-50%);
    cursor: pointer;
    color: #01497c;
    font-size: 18px;
    user-select: none;
    transition: color 0.3s ease;
}

.toggle-password:hover,
.toggle-confirm-password:hover {
    color: #012a4a;
}

/* PASSWORD STRENGTH AND CONFIRM MESSAGE */
.password-strength,
.confirm-password-message {
    font-size: 13px;
    margin-bottom: 12px;
    color: #012a4a;
}

/* ANIMATIONS */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ERROR MESSAGES */
.error {
    color: red;
    margin-bottom: 15px;
    font-size: 14px;
    animation: fadeIn 0.5s forwards;
}
