/*
 * Stylesheet of the standalone sign-in pages (landing, login, register, reset password). They load no Bootstrap, so
 * rules like .btn here are this file's own. Pages built on layouts/base.html use styles.css instead.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, hwb(230deg 2% 82%) 0%, #fff 100%);
    background-size: 400% 400%;
    position: relative;
    flex-direction: column;
}

.company-name h3 {
    font-size: 35px;
    font-weight: 700;
    color: #333;
    font-family: Arial, sans-serif;
    margin: 0 0 20px;
    padding: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100% - 60px);
    width: 100%;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 20%);
    text-align: center;
    width: 350px;
    animation: fadeIn 1s ease-in-out;
}

.sign-in-text {
    margin-top: 5px;
    font-size: 24px;
    color: #333;
    margin: 0;
    padding-top: 3px;
    margin-bottom: 10px;
}

.welcome-back {
    font-size: 14px;
    color: grey;
    margin: 0 0 20px;
}

.textbox {
    position: relative;
    margin-bottom: 15px;
}

.textbox.password-container {
    margin-bottom: 5px;
}

.textbox i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.textbox.password-container i.toggle-password {
    left: auto;
    right: 10px;
    cursor: pointer;
}

.textbox input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

.textbox.password-container input {
    padding-right: 40px;
}

/* Microsoft Edge draws its own eye inside a password field once something is typed; we already draw one. */
.textbox.password-container input::-ms-reveal {
    display: none;
}

.textbox input:focus {
    border-color: #007bff;
}

.forgot-password {
    text-align: right;
    margin-top: 5px;
}

.forgot-password a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #0056b3;
}

.messages {
    margin-top: 20px;
}

.messages p {
    color: red;
    font-size: 14px;
}

/* "Logged out", "registration received" and the like are not errors */
.messages p.success {
    color: #198754;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.half-width {
    flex: 1;
}

.half-width .textbox input {
    padding-left: 40px;
}

.half-width .textbox i {
    left: 10px;
}

*,
::after,
::before {
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #000;
}

a {
    cursor: pointer;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    color: #000;
}

.landing-text {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.landing-links .btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    background: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    text-align: center;
}

.landing-links .btn:hover {
    background: #0056b3;
}

.register-link-style {
    color: blue !important;
}

.login-link-style {
    color: blue;
}
