﻿@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-Light.ttf');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-LightItalic.ttf');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-Regular.ttf');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-Italic.ttf');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-BoldItalic.ttf');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-ExtraBold.ttf');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSansHebrew';
    src: url('/assets/fonts/open-sans-hebrew/OpenSansHebrew-ExtraBoldItalic.ttf');
    font-weight: 800;
    font-style: italic;
}

html, body, div, span, object, iframe, figure, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, code, em, img, small, strike, strong, sub, sup, tt, b, u, i, ol, ul, li, fieldset, form, label, table, caption, tbody, tfoot, thead, tr, th, td, main, canvas, embed, footer, header, nav, section, video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

*, *:before, *:after {
    box-sizing: border-box;
}

a {
    color: #333;
    -webkit-text-decoration: underline #C05602;
    text-decoration: underline #C05602;
    text-decoration-thickness: .125rem;
    text-underline-offset: .3125rem;
    transition: color .2s ease-in-out,text-decoration-color .2s ease-in-out;
    cursor: pointer;
    font: inherit;
}

div, ul {
    scrollbar-color: #828487 transparent !important;
    scrollbar-width: thin !important;
}

strong {
    font-weight: 700;
}

body {
    background: #ececec;
    color: #333;
    font-size: 1rem;
    font-family: "OpenSansHebrew", sans-serif;
    font-weight: 400;
    height: 100%;
    line-height: 1.5;
    overflow: hidden;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: inline;
}

.restricted-login-root {
    display: block;
    height: 100%;
    overflow-y: auto;
}

.restricted-login-body {
    align-items: center;
    background: #fff;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
    width: 100%;
}

    .restricted-login-body .login-bg:before,
    .restricted-login-body .login-bg:after {
        background: linear-gradient(253deg,#F39231 7.15%,#E4702E 31.85%,#D54E2A 56.57%);
        content: "";
        height: 100%;
        position: absolute;
    }

    .restricted-login-body .login-bg:before {
        left: 0;
        top: 50%;
        transform-origin: 0 50%;
        transform: rotate(-40deg);
        width: 8%;
    }

    .restricted-login-body .login-bg:after {
        height: 200%;
        left: 35%;
        top: 50%;
        transform: translate(-50%,-50%) rotate(-40deg);
        width: 38%;
    }

.login-page-container {
    background: #fff;
    box-shadow: 0 0 1.5rem #00000026;
    border-radius: .25rem;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: 45rem;
}

.w-100 {
    width: 100%;
}

.login-form {
    display: block;
    padding: 2.25rem 7.5rem;
}

.logo {
    display: block;
    margin: 0 auto 1.75rem;
    width: 11.375rem;
}

    .logo img {
        height: auto;
        width: 100%;
    }

.form-title {
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem;
}

.form-description {
    font-size: 1.125rem;
    line-height: 1.39;
    margin: 0 0 2rem;
}

.floating-placeholder {
    position: relative;
}

    .floating-placeholder input {
        width: 100%;
        padding: 12px 10px;
        border: 1px solid #d2d2d2;
        border-radius: 4px;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .floating-placeholder input:focus {
            border-color: #f38c1f;
            box-shadow: 0 0 4px rgba(63, 81, 181, 0.25);
            outline: none;
        }

        .floating-placeholder input::placeholder {
            color: transparent;
        }

    .floating-placeholder label {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        font-size: 1rem;
        color: #5f6368;
        transition: 0.2s ease;
        background-color: white;
        padding: 0 4px;
        pointer-events: none;
    }

    .floating-placeholder input:focus + label,
    .floating-placeholder input:not(:placeholder-shown) + label {
        top: 0;
        right: 8px;
        font-size: 0.75rem;
    }

.text-danger {
    font-size: 0.75rem;
    color: #d32f2f;
    margin-top: 4px;
    display: block;
}

.d-none {
    display: none;
}

.btn-container {
    display:flex;
    justify-content: center;
}

.submit-button {
    --mdc-filled-button-label-text-color: #fff;
    --mdc-filled-button-container-color: #FF9900;
    background: linear-gradient(90deg, #E16327 0%, #F7941E 100%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    text-align: center;
    height: 3.125rem;
    width: 50%;
}

    .submit-button:hover {
        background: linear-gradient(90deg, #c0521f 0%, #d87d1c 100%);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

.validation-summary-errors {
    font-size: 16px;
}

@keyframes rotate {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.preloader-icon {
    width: 3.125rem;
    height: 3.125rem;
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    margin: 0 auto;
}

/* Error Page */
.restricted-error-page a {
    text-decoration: none;
}

.restricted-error-page .form-title {
    font-size: 30px;
}

.restricted-error-page .form-description {
    font-size: 20px;
}

.restricted-error-page .submit-button {
    height: inherit;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        font-size: 0.875rem;
    }

    .login-page-container {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    .login-form {
        padding: 0.5rem;
    }

    .logo {
        width: 8rem;
        margin-bottom: 1rem;
    }

    .login-form .form-title {
        font-size: 1.25rem;
    }

    .login-form .form-description {
        font-size: 1rem;
    }

    .floating-placeholder input {
        padding: 10px;
    }

    .floating-placeholder label {
        font-size: 0.875rem;
    }

    .login-form .submit-button {
        width: 100%;
        height: 2.5rem;
        font-size: 0.875rem;
    }

    .text-danger {
        font-size: 0.7rem;
    }
}
