@font-face {
    font-family: "rubik-bold";
    src: url('/resources/themeSnoc/font/Rubik-Bold.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

.password-wrapper{
    position: relative;
}

.password-input{
    width: 100%;
    padding-right: 40px;
}

.toggle-password{
    position: absolute;
    margin : 1% 0% 0% -2%;
    cursor: pointer;
    color: #b22222;
    font-size: 18px;
}

@font-face {
    font-family: "rubik-regular";
    src: url('/resources/themeSnoc/font/Rubik-Regular.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "rubik-semibold";
    src: url('/resources/themeSnoc/font/Rubik-SemiBold.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "notoKufiArabic-bold";
    src: url('/resources/themeSnoc/font/NotoKufiArabic-Bold.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "notoKufiArabic-regular";
    src: url('/resources/themeSnoc/font/NotoKufiArabic-Regular.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "notoKufiArabic-semibold";
    src: url('/resources/themeSnoc/font/NotoKufiArabic-SemiBold.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* CSS Variables for Font Families */
:root {
    --my-font-bold: 'rubik-bold';
    --my-font-regular: 'rubik-regular';
    --my-font-semibold: 'rubik-semibold';
    --my-font-arabic-bold: 'notoKufiArabic-bold';
    --my-font-arabic-regular: 'notoKufiArabic-regular';
    --my-font-arabic-semibold: 'notoKufiArabic-semibold';
}

/* RTL Font Variables Override */
html[dir="rtl"] {
    --my-font-bold: 'notoKufiArabic-bold';
    --my-font-regular: 'notoKufiArabic-regular';
    --my-font-semibold: 'notoKufiArabic-semibold';
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--my-font-semibold) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    height: 40px;
    width: auto;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.language-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.container {
    display: flex;
    flex: 1;
    padding: 60px 160px;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.left-section {
    flex: 1;
    max-width: 60%;
}

.network-image {
    width: 100%;
    height: 400px;
    background: url('/oauth/images/left_side.png') no-repeat center;
    background-size: cover;
    border-radius: 4px;
	margin-left: -41px;
}

.right-section {
    flex: 1;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    min-height: 400px; /* Fixed height to match image */
    display: flex;
    flex-direction: column;
}

.login-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    background: #eee;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
    font-family: var(--my-font-bold) !important;
}

.login-form {
    padding: 10px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: var(--my-font-regular) !important;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-family: var(--my-font-semibold) !important;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    font-family: var(--my-font-regular) !important;
}
.login-btn {
    width: 100%;
    padding: 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    font-family: var(--my-font-bold) !important;
}

.login-btn:hover {
    background: #c0392b;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 5px 20px;
    font-size: 14px;
    font-family: var(--my-font-regular) !important;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 16px;
    border-radius: 4px;
    margin: 5px 20px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
    font-family: var(--my-font-regular) !important;
}

.alert {
    padding: 16px;
    border-radius: 4px;
    margin: 5px 20px;
    font-size: 14px;
    font-family: var(--my-font-regular) !important;
}
.footer {
    background: #eeeeee57;
    color: #000;
    text-align: left;
    padding: 20px;
    font-size: 18px;
    font-weight: bolder;
    margin-top: auto;
    font-family: var(--my-font-bold) !important;
}
.footer-text{
    margin-left:8%
}

/* RTL Support for Arabic */
html[dir="rtl"] .footer {
    text-align: right;
}

html[dir="rtl"] .footer-text {
    margin-left: 0;
    margin-right: 20%;
}

html[dir="rtl"] .header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .language-selector {
    flex-direction: row-reverse;
}

html[dir="rtl"] .login-title {
    text-align: center;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .form-group input {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .error-message,
html[dir="rtl"] .success-message,
html[dir="rtl"] .alert {
    text-align: right;
    margin: 5px 20px;
    margin-left: auto;
    margin-right: auto;
}

html[dir="rtl"] .container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .left-section {
    flex-direction: row-reverse;
}

html[dir="rtl"] body {
    direction: rtl;
}

/* Rubik font is defined at the top with @font-face */
.alert-box{
    position: absolute;
    bottom: 20%;
    left:auto;
}
.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #e74c3c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .left-section {
        max-width: none;
        width: 100%;
    }

    .network-image {
        height: 250px;
    }

    .right-section {
        max-width: 100%;
        width: 100%;
    }

    .header {
        padding: 15px 20px;
    }

    .login-container {
        padding: 30px 20px;
        max-width: none;
    }
}