/* Login page styles - ported from time.track_portal */

.guest-layout {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.guest-layout body,
.background-dark {
    background-color: #323537 !important;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Animated background */
.login_background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -3;
}

/* Violet overlay */
.login_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 36, 93, 0.15);
    z-index: -2;
}

.login_time_img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
    opacity: 0.2;
    animation: zoomFast 2s ease-in-out infinite alternate;
    z-index: 1;
}

.login_time_img_left {
    left: 60px;
}

.login_time_img_right {
    right: 60px;
}

@keyframes zoomFast {
    0% { transform: translateY(-50%) scale(1); }
    100% { transform: translateY(-50%) scale(1.1); }
}

@keyframes zoomFastVerticalTop {
    0% { transform: translateY(-200%) scale(1); }
    100% { transform: translateY(-200%) scale(1.1); }
}

@keyframes zoomFastVerticalBottom {
    0% { transform: translateY(100%) scale(1); }
    100% { transform: translateY(100%) scale(1.1); }
}

@keyframes pulseCorner {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.login_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: transparent;
    padding: 20px;
    position: relative;
    z-index: 10;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Background SVG animation */
.login_background_animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.corner {
    stroke: #00ff00;
    stroke-width: 3;
    fill: none;
    transform-origin: center;
    animation: pulseCorner 1.2s ease-in-out infinite alternate;
}

.point {
    fill: white;
    r: 3;
    filter: url(#glow);
}

.scan-line {
    stroke: rgba(0, 255, 0, 0.2);
    stroke-width: 2;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

.login_logo {
    margin-bottom: 0;
    text-align: center;
    background-color: #ef3f32;
    padding: 20px 0;
    width: 100%;
    max-width: 470px;
    border-radius: 0;
    display: flex;
    justify-content: center;
}

.login_logo img {
    width: 260px;
    height: auto;
}

.login_form_container {
    background-color: #ffffff;
    border-radius: 0 0 20px 20px;
    width: 100%;
    max-width: 470px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login_form {
    padding: 30px;
}

.login_field {
    position: relative;
    margin-bottom: 30px;
    padding-top: 10px;
}

/* Input fields */
.login_input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
    transition: border-color 0.3s ease;
    height: auto;
    box-sizing: border-box;
    outline: none;
    background: transparent;
}

.login_input::placeholder {
    color: #999;
}

.login_input::-ms-reveal {
    display: none;
}

.login_icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-35%);
    width: 24px;
    height: 24px;
    z-index: 1;
}

/* Password visibility toggle */
.password_toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-35%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 3;
    background: none;
    border: none;
    padding: 0;
}

.password_toggle img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.password_toggle:hover img {
    opacity: 1;
}

.login_input:focus {
    border-color: #ef3f32;
    outline: none;
}

.login_button {
    margin: 30px 0;
}

.login_submit {
    width: 100%;
    padding: 15px;
    background-color: #323537;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login_submit:hover {
    background-color: #242729;
}

.login_link {
    text-align: center;
}

.login_link a {
    color: #323537;
    text-decoration: none;
    font-size: 14px !important;
    font-family: 'Montserrat', Arial, sans-serif;
}

.login_checkbox_row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 8px 0;
}

.login_checkbox_row .e-checkbox-wrapper .e-label,
.login_checkbox_row .e-right .e-label {
    font-size: 14px !important;;
    color: #323537;
    font-family: 'Montserrat', Arial, sans-serif;
}

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

.login_separator {
    height: 5px;
    background-color: #f2f2f2;
    width: 85%;
    margin: 0 auto;
}

.login_languages {
    display: flex;
    justify-content: center;
    padding: 15px 0;
}

.login_languages img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    margin: 0 10px;
    cursor: pointer;
}

.login_languages img:hover {
    transform: scale(1.1);
}

.login_copyright {
    text-align: center;
    padding: 15px 0;
    color: #323537;
    font-size: 12px;
}

/* Hardware ID under copyright (credential login only) — same tone as .login_copyright, slightly smaller */
.login_hardware_footer {
    text-align: center;
    padding: 0 12px 15px;
    color: #323537;
    font-size: 11px;
    font-family: 'Montserrat', Arial, sans-serif;
    word-break: break-all;
    line-height: 1.45;
}

.login_hardware_footer_label {
    font-weight: 600;
}

.login_hardware_footer_value {
    font-family: Consolas, "Segoe UI Mono", ui-monospace, monospace;
    font-weight: 500;
}

/* Error message */
.login_error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Configuration page titles */
.login_title {
    font-size: 22px;
    font-weight: bold;
    color: #323537;
    margin-bottom: 10px;
    display: block;
}

.login_subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: block;
}

/* Access brand decorative images */
.login_access_img {
    position: absolute;
    width: 120px;
    height: auto;
    opacity: 0.2;
    animation: zoomFast 2s ease-in-out infinite alternate;
    z-index: 1;
}

/* Left side - top row */
.login_access_left_top1 {
    top: 40%;
    left: calc(50% - 750px);
}

.login_access_left_top2 {
    top: 40%;
    left: calc(50% - 600px);
}

.login_access_left_top3 {
    top: 40%;
    left: calc(50% - 450px);
}

/* Left side - bottom row */
.login_access_left_bottom1 {
    top: 60%;
    left: calc(50% - 750px);
}

.login_access_left_bottom2 {
    top: 60%;
    left: calc(50% - 600px);
}

.login_access_left_bottom3 {
    top: 60%;
    left: calc(50% - 450px);
}

/* Right side - top row */
.login_access_right_top1 {
    top: 40%;
    left: calc(50% + 350px);
}

.login_access_right_top2 {
    top: 40%;
    left: calc(50% + 500px);
}

.login_access_right_top3 {
    top: 40%;
    left: calc(50% + 650px);
}

/* Right side - bottom row */
.login_access_right_bottom1 {
    top: 60%;
    left: calc(50% + 350px);
}

.login_access_right_bottom2 {
    top: 60%;
    left: calc(50% + 500px);
    width: 255px;
}

/* 404 page styles */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
}

.content .logo {
    width: 140px;
    margin-bottom: 40px;
}

.content h1 {
    font-size: 72px;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.content p {
    font-size: 20px;
    font-weight: 400;
    margin: 15px 0 30px;
    color: #e0e0e0;
}

.content a {
    padding: 12px 30px;
    background-color: #89d329;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.content a:hover {
    background-color: #76b924;
}

/* Responsive */
@media (max-width: 768px) {
    .login_time_img {
        width: 200px;
    }
    .login_time_img_left {
        left: 20px;
    }
    .login_time_img_right {
        right: 20px;
    }
    .login_access_img {
        display: none;
    }
}

@media (max-width: 480px) {
    .login_form_container {
        width: 100%;
    }
    .login_form {
        padding: 20px;
    }
    .login_time_img {
        display: none;
    }
    .login_logo img {
        width: 200px;
    }
    .login_input {
        font-size: 16px;
    }
}

/* Guest layout: wrapper so full-screen loading sits outside .guest-layout (overflow hidden would clip fixed children). */
.guest_layout_root {
    min-height: 100vh;
}

.guest_login_submit_loading_hidden {
    display: none !important;
}

/* API docs login intro line */
.login_intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    margin-top: 0;
}

/* Hardware ID (licence / support) */
.login_hardware_id {
    margin: 16px 0 12px;
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    font-size: 13px;
    color: #323537;
}

.login_hardware_id_label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.login_hardware_id_value {
    display: block;
    font-family: Consolas, "Segoe UI Mono", ui-monospace, monospace;
    word-break: break-all;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    padding: 0;
    margin: 0 0 10px;
    border: none;
    color: #323537;
}

.login_hardware_hint {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    font-weight: 400;
}
