@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* CSS Variables for Colors */
:root {
    --light-orange-color: #e8e6df;
    --orange-color: #ff8d6e;
    --blue-light--color: #298f9e;
    --dark-blue-color: #002A3B;
    --light-dark-blue-color: rgba(0, 42, 59, 0.3);
    --white-color: #fff;
    --black: #000000;

    /* Font and Spacing Base */
    --base-font-size: 16px;
    /* 1rem */
    --base-padding: 2.5rem;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
    background: #e8e6df;
    background-size: cover;
    background-position: center;
}

#logo {
    height: 3rem;
    width: 15rem;
    align-self: center;
}

.box {
    border-radius: 20px;
    width: 400px;
    padding: 30px;
    background-color: #fff;
    box-shadow: 1px 1px 2px #ffc400ef;
    display: flex;
    flex-direction: column;
}

.box h1 {
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uname,
.uemail,
.password {
    position: relative;
}

svg,
.fa-regular.fa-envelope,
.fa-solid.fa-lock,
.fa-user {
    position: absolute;
    left: 15px;
    top: 20px;
}

.fa-solid.fa-eye,
.fa-solid.fa-eye-slash {
    position: absolute;
    right: 15px;
    top: 20px;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    user-select: none;
    transition: color 0.2s ease;
    color: var(--dark-blue-color);
}

.fa-solid.fa-eye:hover,
.fa-solid.fa-eye-slash:hover {
    color: var(--orange-color);
}

.box input[type="text"],
.box input[type="email"],
.box input[type="password"] {
    font-size: 20px;
    border: none;
    background: none;
    display: block;
    margin: 30px auto;
    border: 2px solid #FF8D6D;
    padding: 14px 2.5rem 1rem;
    width: 100%;
    color: #000;
    border-radius: 24px;
    transition: all .2s ease-in;
    outline: none;
}

.box input[type="text"]:focus,
.box input[type="password"]:focus,
.box input[type="email"]:focus {
    border: 2px solid #FF8D6D;
}

.wrapper {
    /* border: 2px solid orangered; */
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

#btn {
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    outline: none;
    padding: 12px 24px;
    font-size: 16px;

    border-radius: 24px;
    transition: all .2s ease-in-out;
    cursor: pointer;

    border: 2px solid var(--dark-blue-color);
    background-color: var(--dark-blue-color);
    color: white;
}

#btn:hover {
    background-color: transparent;
    color: var(--dark-blue-color);
}

.error {
    color: red;
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
    background-color: rgb(255, 0, 0, 0.2);
    padding: 8px;
    width: max-content;

    border-radius: 5px;
}

.error-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.success {
    color: green;
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
    background-color: rgba(0, 128, 0, 0.3);
}

.link {
    text-align: center;
    color: var(--dark-blue-color);
    margin: 15px;
    font-size: 18px;
}

.link a {
    color: var(--dark-blue-color);
}

/* Company logo styling for multi-tenancy */
.company-logo {
    text-align: center;
    margin-bottom: 15px;
}

.company-logo img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
}

.system-name {
    text-align: center;
    font-size: 16px;
    color: var(--dark-blue-color);
    margin-bottom: 25px;
    font-weight: 500;
}