ورود
نسخه نمایشی
نسخه نمایشی
<div class="neo-form compact">
<div class="title">ورود<br><span>نسخه نمایشی</span></div>
<input type="text" placeholder="ایمیل" class="input" value="demo_user" readonly onfocus="this.removeAttribute('readonly');">
<input type="password" placeholder="رمز عبور" class="input" value="password123" readonly onfocus="this.removeAttribute('readonly');">
<div class="login-with">
<div class="button-log">
<svg class="icon" viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg"><path d="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 46.9 106.7 78.6 106.7 24.3.3 33.1-17.2 60.3-17.2 26.3 0 33.6 17.2 60.8 17.2 31.4-.3 61.9-58.4 77-105.1-47.8-17.4-76.4-56.1-76.4-87.4z"/></svg>
</div>
<div class="button-log">
<svg class="icon" viewBox="0 0 488 512" xmlns="http://www.w3.org/2000/svg"><path d="M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"/></svg>
</div>
<div class="button-log">
<svg class="icon" viewBox="0 0 384 512" xmlns="http://www.w3.org/2000/svg"><path d="M80 0C44.7 0 16 28.7 16 64V448c0 35.3 28.7 64 64 64H304c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H80zM192 400a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM304 64v320H80V64H304z"/></svg>
</div>
</div>
<button class="button-confirm" type="button">کپی کد</button>
</div>
/* تنظیمات کانتینر فشرده */
.neo-form {
--main-color: #323232;
--bg-color: #fff;
padding: 15px; /* کاهش پدینگ */
background: #e0e0e0;
display: flex;
flex-direction: column;
align-items: center; /* وسط چین کردن همه چیز */
justify-content: center;
gap: 12px; /* کاهش فاصله بین المانها */
border-radius: 8px;
border: 2px solid var(--main-color);
box-shadow: 3px 3px var(--main-color); /* سایه کوچکتر */
direction: rtl;
width: 100%; /* عرض کامل نسبت به کارت */
max-width: 100%;
box-sizing: border-box;
}
/* عنوان کوچک */
.title {
color: var(--main-color);
font-weight: 800;
font-size: 16px; /* فونت کوچکتر */
margin-bottom: 5px;
text-align: center;
line-height: 1.2;
}
.title span {
font-size: 12px;
opacity: 0.7;
}
/* اینپوتهای جمع و جور */
.input {
all: unset;
width: 100%;
box-sizing: border-box;
height: 35px; /* ارتفاع کمتر */
border-radius: 5px;
border: 2px solid var(--main-color);
background-color: var(--bg-color);
box-shadow: 2px 2px var(--main-color); /* سایه ریزتر */
font-size: 12px;
padding: 0 10px;
text-align: center; /* متن وسط */
color: #333;
}
.input:focus {
border-color: #2d8cf0;
}
/* آیکونها */
.login-with {
display: flex;
gap: 10px;
justify-content: center;
margin-top: 5px;
}
.button-log {
width: 32px; /* دکمههای کوچکتر */
height: 32px;
border-radius: 50%;
border: 2px solid var(--main-color);
background-color: var(--bg-color);
box-shadow: 2px 2px var(--main-color);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
.icon {
width: 16px; /* سایز آیکون داخل دایره */
height: 16px;
fill: var(--main-color);
}
/* دکمه نهایی */
.button-confirm {
all: unset;
margin-top: 5px;
width: 100%;
height: 35px;
border-radius: 5px;
border: 2px solid var(--main-color);
background-color: #323232;
color: #fff;
box-shadow: 2px 2px #000;
font-size: 13px;
font-weight: bold;
cursor: pointer;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.button-confirm:active,
.button-log:active {
transform: translate(1px, 1px);
box-shadow: 1px 1px #000;
}