/*
------------------------------------------------------------------------------
 NodeSniff Agent - Lightweight Linux metrics collector

 Author: Sebastian Zieba <sebastian@zieba.art>
 License: GNU GPL v3 (non-commercial use only)

 This software is licensed under the terms of the GNU General Public License
 version 3 (GPLv3) as published by the Free Software Foundation, for
 non-commercial use only.

 For commercial licensing, please contact the author directly.
------------------------------------------------------------------------------
*/
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.login-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 80px auto 0px auto;
    padding: 20px 0% 0% 0%;
    max-width: 600px;
}

@media (max-width: 600px) {
    .login-card {
        min-width: unset;
        max-width: 98vw;
        width: 100%;
        margin: 0 1vw;
    }
    .login-center {
        min-height: unset;
        padding: 12px 0 24px 0;
        align-items: stretch;
        justify-content: flex-start;
    }
}

.login-card {
    min-width: 350px;
    max-width: 600px;
    width: 100%;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.form-text.text-danger {
    font-size: 0.7em;
    margin-top: 0.1em;
}

.form-control {
    color: #000 !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0 !important;
}
.form-control:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    outline: none !important;
}

.btn,
.card,
.card-body {
    border-radius: 0 !important;
}

/* Remove all border radius from Bootstrap components */
:root {
    --bs-border-radius: 0 !important;
    --bs-border-radius-sm: 0 !important;
    --bs-border-radius-lg: 0 !important;
    --bs-border-radius-xl: 0 !important;
    --bs-border-radius-xxl: 0 !important;
    --bs-border-radius-pill: 0 !important;
    --bs-border-radius-circle: 0 !important;
}

#loginAlert {
    display: block;
    width: 100%;
    text-align: center;
    /* color: #dc3545; DO NOT USE */
    /* background: rgba(220,53,69,0.10); DO NOT USE */
    /* border: 1px solid #f5c2c7; DO NOT USE */
    border-radius: 4px;
    padding: 8px 10px;
    margin-top: 15px;
    font-size: 1.04em;
    font-weight: 500;
}

input.form-control,
button.btn,
.btn,
.form-control {
    border-radius: 0 !important;
}

.alert {
    border-radius: 0 !important;
}

button:disabled,
button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Two-column layout adjustments for larger screens */
@media (min-width: 768px) {
    #registerForm .row-cols-md-2 > .col {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    #registerForm .row-cols-md-2 {
        display: flex;
        flex-wrap: wrap;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
}
