@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* Global Reset */
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    -webkit-font-smoothing: antialiased; /* for Safari */
    -moz-osx-font-smoothing: grayscale;  /* for Firefox on Mac */
}

/* Container */
.container {
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 30px;
}

/* Centered Content */
.container .content {
    text-align: center;
}

/* Responsive Image */
.resizable-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Input Container */
.input-container {
    position: relative;
    margin: 15px 0;
}

/* Icon Input Styling */
.input-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Icon Style */
.input-icon i {
    color: #75767c;
    margin-right: 10px;
}

/* Input Field */
.input-icon input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
}

/* On Focus Scale */
.input-icon input:focus {
    transform: scale(1.02);
}

/* Label Style */
.form-label {
    position: absolute;
    top: 12px;
    left: 45px;
    background-color: white;
    color: #75767c;
    font-size: 16px;
    padding: 0 5px;
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Floating Label */
.input-container input:focus + .form-label,
.input-container input:not(:placeholder-shown) + .form-label {
    color: #2f353c;
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: white;
}

/* Input Focus Box */
.input-icon:focus-within {
    border-color: #2f353c;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Form Container */
.form-container {
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    margin: auto 0;
}

/* Form Box */
.form-container form {
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background: #fff;
    text-align: center;
    width: 350px;
}

/* Select Dropdown */
.form-container form select option {
    background: #fff;
}

/* Button */
.form-container form .form-btn {
    background: #45535e;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s ease;
}

/* Button Hover */
.form-container form .form-btn:hover {
    background: #0a605f;
    color: #fff;
}

/* Paragraph Text */
.form-container form p {
    margin-top: 10px;
    font-size: 12px;
    color: #333;
}

/* Link Color */
.form-container form p a {
    color: #00A950;
}

/* Error Message */
.form-container form .error-msg {
    margin: 10px 0;
    display: block;
    background: crimson;
    color: #fff;
    border-radius: 3px;
    font-size: 15px;
    padding: 10px;
}

/* Login page only background */
/* Login page only background */
body.login-page {
    background-image: url('../Image/loginbackground.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Shared login background for auth pages */
.login-bg {
    background-image: url('../Image/loginbackground.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Password visibility toggle */
.toggle-container {
    margin-bottom: 20px;
    font-size: 14px;
    color: gray;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-switch:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch.on {
    background-color: #0a605f;
}

.toggle-switch.on:before {
    left: 22px;
}

.toggle-label {
    font-size: 12px;
}
