html {
    overflow-x: hidden;
    margin: 0 !important;
}

html, body {
    width: 100%;
    height: 100%;
    background: #FBFBF8;
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
:root {
    --primary-color: #6D28D9; /* Primary purple */
    --primary-light-color: #EDE9FE; /* Very light purple */
    --text-color: #1F2937; /* Main text color */
    --text-light-color: #6B7280; /* Gray text color */
    --border-color: #D1D5DB; /* Border color */
    --background-color: #F9FAFB; /* Page background color */
}

body {
    font-family: 'Vazirmatn', sans-serif; /* Use Vazirmatn font */
    background-color: #ff0000;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}
main {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

}
.min-h-80 {
    height: 100%;
    width:  100%;
}
/* Main page container */
.signal-login-container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Header including logo and text */
.signal-header {
    text-align: center;
    padding: 40px 20px 32px 20px;
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
}

.signal-header .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 28px;
    margin-bottom: 16px;
}

.signal-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.signal-header p {
    color: var(--text-light-color);
    margin: 0;
    font-size: 14px;
    padding: 0 2rem;
}

/* Main form section */
.signal-main-content {
    margin: 0 16px 20px 16px;
    padding: 1rem;
    box-shadow: 0 10px 25px rgb(0 0 0 / 12%);
}

.signal-main-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
}

.signal-main-content .subtitle {
    text-align: center;
    color: var(--text-light-color);
    margin-bottom: 30px;
    font-size: 0.75rem;
}

/* Form fields grouping */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group .icon {
    position: absolute;
    bottom: 5px;
    left: 15px;
    transform: translateY(-50%);
    color: var(--text-light-color);
}

.form-group .password-toggle-icon {
    position: absolute;
    bottom: 5px;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-light-color);
    cursor: pointer;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Space for left icon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

/* Form options: Remember me and Forgot password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-options .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light-color);
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.form-options a:hover {
    text-decoration: underline;
}

/* Main login button */
.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #5B21B6; /* Slightly darker */
}

/* Divider */
.divider {
    text-align: center;
    margin: 25px 0;
    color: var(--text-light-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.divider::before, .divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: var(--border-color);
}

/* Login with Telegram button */

/* Information box */
.info-box {
    background-color: var(--primary-light-color);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
    font-size: 13px;
    color: #5B21B6;
}

.info-box a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

/* Security section footer */
.security-info {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.security-info .fa-shield-halved {
    color: var(--primary-color);
}
/* Add this code to your styles */
.form-group {
    position: relative; /* For absolute positioning of the eye icon */
}

.password-toggle-icon {
    position: absolute;
    bottom: 10px;
    right: 15px;
    cursor: pointer;
    color: #888; /* Icon color */
}

header ,
footer nav{
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;

}
body {
    background-color: #f4f4f5; /* Mild chat background color */
}
.signals-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: 100%;
    background-color: #ffffff;
    padding-top: 70px;
    overflow: scroll;
}
header {
    margin-bottom: -2px;
}
footer {
    position:  fixed ;
    bottom: 0;
    left: 0;
    right: 0;
    display:  flex;
    justify-content: center;
    align-items: center;
}
header {
    position: fixed;
    top: 0;
    padding: 12px 0;
    z-index: 1000;
}
.header-logo {
    display: flex;
    justify-content: center;
}

.header-logo img {
    width: 150px;
}
div#spa-content ,
.spa-content{
    max-width: 500px;
    width: 100%;
    height: 100%;
}
/* SPA Spinner Loading Animation */
.spa-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5c2483;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
    position: fixed;
    top: 30%;
    left: 49%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spa-error {
    text-align: center;
    padding: 50px;
    color: #ff3b30;
    font-family: sans-serif;
}
