body {
    height: 80%;
}

#login-img {
    height: 60px;
    width: 65%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    margin-bottom: 35px;
}

#login-box,
#reset-box {
    width: 460px;
    padding: 25px 40px 45px;
    background-color: #ffffff;
}

#login-box > img {
    width: 260px;
    height: 95px;
}

#login-box input,
#reset-box input {
    margin: 0 0 45px;
}

#login-box #submit {
    margin-bottom: 0;
}

#login-box input[type="submit"],
#forgot-box button,
#reset-box button,
#firstConnection-box button {
    padding: 10px 18px;
    margin-top: 15px;
}

#login-box input:not([type="submit"]),
#reset-box input {
    font-size: 16px;
    text-align: left;
    background-color: #ffffff;
    border-width: 0 0 1px 0;
    padding-left: 0;
}

#login-box input:not([type="submit"]):focus,
#reset-box input:focus {
    background-color: #ffffff !important;
    border-width: 0 0 2px 0;
    box-shadow: none;
}

#login-box input:-webkit-autofill,
#login-box input:-webkit-autofill:hover,
#login-box input:-webkit-autofill:focus,
#login-box input:-webkit-autofill:active,
#reset-box input:-webkit-autofill,
#reset-box input:-webkit-autofill:hover,
#reset-box input:-webkit-autofill:focus,
#reset-box input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset;
}

#login-box a:hover {
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid;
}

#login-box #remember {
    margin: 0;
}

#login-box .flag,
#reset-box .flag {
   width: 30px;
    margin-top: 5px;
}

#login-box .alert {
    margin-bottom: 0;
}

#login-box #email.is-invalid {
    color: #dc3545;
    border-color: #dc3545;
}

#login-box .alert:not(#connectionError) {
    display: none;
}


#reset-box .alert {
    display: none;
}

#triangle::before,
#triangle::after {
    content: '';
    position: absolute;
    bottom: 0;
    border-color: transparent;
    border-style: solid;
    transform: rotate(180deg);
}

#triangle::after {
    border-width: 18em;
    border-right-color: #ffffff;
    border-top-color: #ffffff;
}

@media screen and (max-width: 1330px)
{
    #triangle::after {
        border-width: 15em;
    }
}
@media screen and (max-width: 1050px)
{
    body {
        height: 100%;
    }

    #triangle {
        display: none;
    }
}
@media screen and (max-height: 815px)
{
    #login-img {
        margin-top: 60px;
    }
}
@media screen and (max-height: 800px)
{
    body {
        height: 100%;
    }

    #triangle {
        display: none;
    }
}

/* Password strength requirements */
.password-requirement {
    margin-bottom: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.password-requirement i {
    margin-right: 8px;
    font-size: 16px;
}

.password-requirement.text-success i {
    color: #28a745;
}

#passwordStrengthIndicator {
    margin-top: 10px;
}

#passwordRequirements {
    margin-top: 10px;
}

/* Form validation feedback */
#emailFeedback,
#loginFeedback,
#passwordMatchFeedback {
    font-size: 13px;
    margin-top: -20px;
    margin-bottom: 25px;
}

#sendFirstConnection:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error border for invalid inputs */
.border-bottom-error {
    border-bottom-color: #dc3545 !important;
}

/* 2FA Method Selection Cards */
.twofa-method-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.twofa-method-card:hover {
    border-color: #5cb85c;
    box-shadow: 0 4px 12px rgba(92, 184, 92, 0.2);
    transform: translateY(-2px);
}

.twofa-method-card:active {
    transform: translateY(0);
}

.twofa-method-icon {
    margin: 0 auto 20px;
}

html body .twofa-method-icon i {
    font-size: 32px;
    color: #6c757d;
    transition: color 0.3s ease;
}

html body .twofa-method-card:hover .twofa-method-icon i {
    color: #5cb85c;
}

html body .twofa-method-title {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
}

html body .twofa-method-description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.5;
}

#setup2FA-box .row {
    margin-left: -10px;
    margin-right: -10px;
}

/* 2FA Method Selection - Horizontal Cards */
.twofa-method-list {
    max-width: 600px;
    margin: 0 auto;
}

.twofa-method-card-horizontal {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.twofa-method-card-horizontal:hover {
    border-color: #5cb85c;
    box-shadow: 0 4px 12px rgba(92, 184, 92, 0.2);
    transform: translateX(4px);
    background: #f8fff8;
}

.twofa-method-card-horizontal:active {
    transform: translateX(2px);
}

.twofa-method-icon-horizontal {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.twofa-method-card-horizontal:hover .twofa-method-icon-horizontal {
    background: #e8f5e9;
}

.twofa-method-icon-horizontal i {
    color: #6c757d;
    transition: color 0.3s ease;
}

.twofa-method-card-horizontal:hover .twofa-method-icon-horizontal i {
    color: #5cb85c;
}

.twofa-method-content {
    flex: 1;
    text-align: left;
}

.twofa-method-arrow {
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.twofa-method-card-horizontal:hover .twofa-method-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.twofa-method-arrow i {
    color: #6c757d;
    font-size: 18px;
}

#setup2FA-box .row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
}

/* QR Code for 2FA */
#qrCodeContainer,
#qrCodeContainerRequired {
    display: flex;
    justify-content: center;
}

#qrCode,
#qrCodeRequired {
    max-width: 200px;
}

#qrCode canvas,
#qrCode img,
#qrCodeRequired canvas,
#qrCodeRequired img {
    max-width: 200px !important;
    height: auto !important;
}