/* UwU Mail overrides for Roundcube's Elastic skin. */

body.task-login {
    background: #21292c;
    color: #c5d1d3;
    color-scheme: dark;
    overflow-y: auto;
}

body.task-login #layout {
    display: block;
    min-height: 100%;
    height: auto;
    overflow: visible;
}

body.task-login #layout-content {
    display: block;
    width: 100%;
    min-height: 100vh;
    padding: clamp(36px, 15vh, 140px) 16px 36px;
    text-align: center;
    background: #21292c;
    border: 0;
}

body.task-login #logo {
    display: block;
    position: static;
    width: auto;
    height: 100px;
    max-width: 100%;
    max-height: 100px;
    margin: 0 auto 38px;
    padding: 0;
    object-fit: contain;
    opacity: .8;
}

body.task-login #login-form {
    position: static;
    width: 320px;
    max-width: 100%;
    margin: 0 auto;
}

body.task-login #login-form table,
body.task-login #login-form tbody {
    width: 100%;
}

body.task-login #login-form .form-group {
    margin: 0 0 7px;
}

body.task-login #login-form td.input {
    padding: 0;
}

body.task-login #login-form .input-group-prepend {
    flex: 0 0 48px;
}

body.task-login #login-form .input-group-text {
    display: flex;
    justify-content: center;
    width: 48px;
    height: 44px;
    padding: 0;
    border: 1px solid #7c949c;
    border-radius: 4px 0 0 4px;
    background: #374549;
    color: #c5d1d3;
    font-size: 18px;
}

body.task-login #login-form .form-control,
body.task-login #login-form .custom-select {
    height: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #7c949c;
    border-radius: 0 4px 4px 0;
    background-color: #21292c;
    color: #c5d1d3;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
}

body.task-login #login-form .form-control::placeholder {
    color: #8ba3a7;
    opacity: 1;
}

body.task-login #login-form .form-control:focus,
body.task-login #login-form .custom-select:focus {
    border-color: #37beff;
    background-color: #263236;
    box-shadow: 0 0 0 2px rgb(55 190 255 / 20%);
}

body.task-login #login-form .form-control.is-invalid,
body.task-login #login-form .custom-select.is-invalid {
    border-color: #ff8080;
}

body.task-login #login-form .formbuttons {
    margin: 0 0 14px;
    padding: 0;
}

body.task-login #rcmloginsubmit {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #37beff;
    border-radius: 4px;
    background: #006a9d;
    color: #e2e7e9;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    text-transform: uppercase;
}

body.task-login #rcmloginsubmit:hover {
    background: #007fb8;
}

body.task-login #rcmloginsubmit:focus-visible {
    outline: 2px solid #37beff;
    outline-offset: 3px;
    box-shadow: none;
}

body.task-login #rcmloginsubmit:disabled {
    opacity: .65;
}

body.task-login #login-footer {
    margin: 0;
    color: #8ba3a7;
    font-size: 14px;
    line-height: 21px;
}

body.task-login #login-footer a {
    color: #37beff;
}

body.task-login #login-footer a:hover {
    color: #78d4ff;
}

#layout-menu #logo {
    object-fit: contain;
}

#print-layout #logo {
    width: auto;
    height: 80px;
    object-fit: contain;
}
