/* Remove default browser spacing */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    color: #222;
}

/* Split the page into two equal sides */
.login_page {
    min-height: 100vh;
    display: flex;
}

/* Left side - login area */
.leftside {
    width: 50%;
    min-width: 350px;
    padding: 60px 9%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* WorkQC logo */
.logo {
    margin-bottom: 20px;
}

.logo img {
    display: block;
    width: 80px;
    margin: auto;
}

/* Welcome text */
.leftside h1 {
    font-size: 30px;
    margin-bottom: 5px;
    text-align: center;
}

.leftside > p {
    color: #777;
    margin-bottom: 35px;
    text-align: center;
}

/* Login form */
form {
    width: 100%;
    max-width: 430px;
    min-width: 350px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 7px;
    outline: none;
}

/* Password input and show/hide button */
.password_field {
    position: relative;
}

.password_field input {
    padding-right: 45px;
}

.password_field button {
    position: absolute;
    right: 10px;
    top: 0;
    width: 35px;
    height: 48px;
    border: none;
    background: none;
    cursor: pointer;
}

.password_field img {
    width: 18px;
}


/* Login button */
form > button {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 7px;
    background: #3A2AB4;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-top: 22px;
}

/* Admin message */
small {
    font-size: 12px;
    margin-top: 25px;
    color: #888;
    text-align: center;
}

/* Django error message for invalid email or password */
form .error, .info {
    color: red;
    font-size: 12px;
    margin-top: 0;
    margin-bottom: 10px;

}

/* Right side */
.rightside {
    width: 50%;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Login rightside image */
.image {
    width: 100%;
    height: 95vh;
    border-radius: 12px;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right-side text */
.rightside h2 {
    font-weight: normal;
    position: absolute;
    bottom: 50px;
    left: 80px;
    width: 80%;
    color: #fafafa;
    opacity: 0.5;
    font-size: 30px;
    text-align: right;
}

input:focus {
    border-color: #3A2AB4;
}

input:hover {
    background-color: #f9f9f9;
}

form button:hover {
    opacity: 0.9;
}

/* VERIFICATION STARTS HERE */
.resend_form {
    margin-top: 15px;
    text-align: center;
}

.resend_form p {
    font-size: 12px;
    color: #999;
}

.resend_form button {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: #3A2AB4;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

/* Back to login link */
.back_login {
    margin-top: 25px;
    text-align: center;
}

.back_login a {
    color: #3A2AB4;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin: 0;
}

.resend_form button:hover {
    text-decoration: underline;
}

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

/* Error message and forgot password */
.lower_message {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

.lower_message .error {
    color: red;
    font-size: 12px;
    margin: 0;
}

.lower_message .error:empty {
    visibility: hidden;
}

.lower_message .back_login {
    margin: 0;
    text-align: right;
}

.lower_message a {
    color: #3A2AB4;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

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