@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 10px; /* Added padding to allow space for scrolling */
    position: relative;
    overflow-y: auto; /* Allows full page scrolling */
}

body::before {
    content: "";
    position: fixed; /* Keeps background fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(120, 45, 24, 0.5), rgba(120, 45, 24, 0.5)), 
                url('../assets/PDM-Facade.png') no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
}

form {
    padding: 25px;
    background: #fff;
    max-width: 500px;
    width: 100%;
    border-radius: 7px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

form .home-icon-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #782d18; /* match your form's accent color */
    text-decoration: none;
    transition: color 0.2s ease;
}

form .home-icon-button:hover {
    color: #ffbe3c; /* hover color */
}

form .title {
    text-align: center;
    margin: 0px 0 20px;
}

form .title h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

form .title p {
    font-size: 14px;
    color: #666;
}

form .form-group {
    margin-bottom: 15px;
    position: relative;
}

form label {
    display: block;
    font-size: 15px;
    margin-bottom: 7px;
}

form input,
form select {
    height: 45px;
    padding: 10px;
    width: 100%;
    font-size: 15px;
    outline: none;
    background: #fff;
    border-radius: 3px;
    border: 1px solid #bfbfbf;
}

form input:focus,
form select:focus {
    border-color: #9a9a9a;
}

form input.error,
form select.error {
    border-color: #f91919;
    background: #f9f0f1;
}

form small {
    font-size: 14px;
    margin-top: 5px;
    display: block;
    color: #f91919;
}

form .password i {
    position: absolute;
    right: 10px;
    height: 45px;
    top: 28px;
    font-size: 13px;
    line-height: 45px;
    width: 45px;
    cursor: pointer;
    color: #939393;
    text-align: center;
}

.submit-btn {
    margin-top: 20px;
}

.submit-btn input {
    color: #ffc44c;
    border: none;
    height: auto;
    font-size: 16px;
    padding: 13px 0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    background: #782d18;
    transition: 0.2s ease;
    width: 100%;
}

.submit-btn input:hover {
    color: #ffbe3c;
    background: #782d18d5;
}

.forgotPass {
    text-align: right;
    width: 100%;
    font-size: 13px;
}

.createAcc {
    text-align: center;
    width: 100%;
    font-size: 13px;
}

/* CABLE BOSS LOGO */
.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo img {
    max-width: 70px;
    height: auto;
}

/* Notification */
.Notification {
    text-align: center;
    color: red;
    margin-bottom: 15px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 40px 15px;
    }

    form {
        padding: 20px;
    }

    form .title h2 {
        font-size: 22px;
    }

    form .title p {
        font-size: 13px;
    }

    form input,
    form select {
        font-size: 14px;
    }

    .submit-btn input {
        font-size: 15px;
        padding: 12px 0;
    }

    .forgotPass,
    .createAcc {
        font-size: 12px;
    }

    .logo img {
        max-width: 60px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 40px 10px;
    }

    form {
        padding: 15px;
    }

    form .title h2 {
        font-size: 20px;
    }

    form .title p {
        font-size: 12px;
    }

    form input,
    form select {
        height: 40px;
        font-size: 13px;
    }

    .submit-btn input {
        font-size: 14px;
        padding: 10px 0;
    }

    .forgotPass,
    .createAcc {
        font-size: 11px;
    }

    .logo img {
        max-width: 50px;
    }
}
