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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Container Styles */
.container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Stack elements vertically */
    align-items: center;
    justify-content: center;
    /* background-color: #ffffff;*/

    padding: 20px;
}

/* Image on top */
.form-img {
    text-align: center;
    margin-bottom: 25px;
}

.form-img img {
    width: 100px;
    /* Adjust logo size */
    height: auto;
}

/* Form Box */
.form {
    margin-bottom: 100px;
    position: relative;
    max-width: 400px;
    width: 100%;
    padding: 30px;
    border-radius: 6px;
    background: #FFF;
    box-shadow: 0px -1px 20px rgba(0, 0, 0, 0.1), 0px -10px 20px rgba(0, 0, 0, 0.05);
    /* Shadow on top */
}

header {
    font-size: 24px;
    font-weight: 600;
    color: #8b5e3b;
    text-align: center;
}

form {
    margin-top: 20px;
}

/* Input Fields */
.field {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 15px;
    border-radius: 6px;
}

.field input,
.field button {
    height: 100%;
    width: 100%;
    border: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
}

.field input {
    outline: none;
    padding: 0 15px;
    border: 1px solid #CACACA;
    transition: border 0.3s ease-in-out;
}

.field input:focus {
    border: 1px solid #950606;
}

/* Eye Icon */
.eye-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #8b8b8b;
    cursor: pointer;
    padding: 5px;
}

/* Button */
.field button {
    color: #fff;
    background-color: #950606;
    transition: all 0.3s ease;
    cursor: pointer;
}


.form-link {
    text-align: center;
    margin-top: 10px;
}

.form-link span,
.form-link a {
    font-size: 14px;
    font-weight: 400;
    color: #569655;
}

.form a {
    color: #0171d3;
    text-decoration: none;
}

.form a:hover {
    text-decoration: underline;
}

.line {
    position: relative;
    height: 1px;
    width: 100%;
    margin: 20px 0;
    background-color: #d4d4d4;
}

.line::before {
    content: 'Or';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #FFF;
    color: #8b8b8b;
    padding: 0 15px;
}

.logo {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.captcha-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

img {
    transition: transform 0.3s;
}

.controls {
    margin-top: 20px;
}

.rotate-btn {
    font-size: 24px;
    padding: 10px;
    margin: 0 15px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.rotate-btn:hover {
    background-color: #45a049;
}

#submit {
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #008CBA;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#submit:hover {
    background-color: #006f8f;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rotate-btn {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#captcha-image {
    width: 100px;
    height: auto;
}

@media screen and (max-width: 480px) {
    .logo {
        max-width: 60px;
    }
}



/* RESPONSIVE STYLES */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .form {
        padding: 20px;
        max-width: 100%;
    }

    header {
        font-size: 22px;
    }

    .field {
        height: 45px;
    }

    .field input,
    .field button {
        font-size: 14px;
    }

    .form-link {
        font-size: 12px;
    }

    /* Make logo smaller on small screens */
    .form-img img {
        width: 80px;
    }
}