Files

353 lines
5.4 KiB
CSS

.page {
min-height: 100vh;
display: grid;
place-items: center;
padding: 40px var(--page-pad);
background-color: #f6f6f6;
background-image: var(--page-title-pattern);
background-size: var(--page-title-pattern-size);
}
.card {
position: relative;
width: min(100%, 1148px);
min-height: 660px;
display: grid;
grid-template-columns: minmax(220px, 344px) minmax(0, 1fr);
grid-template-rows: 1fr;
background: #fff;
border-radius: 5px;
box-shadow: 33px 25px 29.7px -14px rgba(0, 0, 0, 0.03);
overflow: visible;
}
.visual {
position: relative;
align-self: stretch;
background: #efefef;
border-radius: 5px 0 0 5px;
overflow: visible;
}
.ship {
position: absolute;
left: 8%;
bottom: 0;
width: auto;
height: 72%;
max-width: none;
object-fit: contain;
object-position: left bottom;
pointer-events: none;
z-index: 2;
filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.12));
}
.content {
position: relative;
z-index: 1;
align-self: stretch;
display: grid;
place-items: center;
padding: 48px 40px;
min-width: 0;
border-radius: 0 5px 5px 0;
}
.contentInner {
width: min(100%, 468px);
display: flex;
flex-direction: column;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 28px;
width: 100%;
}
.brand img {
width: 69px;
height: 69px;
object-fit: contain;
}
.brandText {
display: flex;
flex-direction: column;
gap: 2px;
text-transform: uppercase;
}
.brandText span {
font-size: 18px;
font-weight: 400;
}
.brandText strong {
font-size: 20px;
font-weight: 500;
}
.form {
display: flex;
flex-direction: column;
gap: 22px;
width: 100%;
}
.field {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-end;
min-height: 46px;
padding: 14px 14px 10px;
border: 1px solid #f6f6f6;
border-radius: 5px;
background: #fff;
transition: border-color 0.25s ease;
}
.field span {
position: absolute;
top: -8px;
left: 12px;
background: #fff;
padding: 0 6px;
font-size: 12px;
font-weight: 400;
color: var(--color-body);
transition: color 0.25s ease;
}
.field:focus-within {
border-color: var(--color-black);
}
.field:focus-within span {
color: var(--color-black);
}
.field input {
border: 0;
outline: 0;
background: transparent;
font: inherit;
font-size: 16px;
font-weight: 400;
width: 100%;
color: var(--color-black);
}
.passwordWrap {
position: relative;
}
.passwordWrap .field {
padding-right: 40px;
}
.eyeBtn {
position: absolute;
right: 14px;
bottom: 14px;
width: 18px;
height: 18px;
display: grid;
place-items: center;
opacity: 0.55;
}
.eyeBtn img {
width: 14px;
height: 14px;
object-fit: contain;
}
.actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-top: 4px;
}
.secondaryBtn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 29px;
padding: 0 4px;
border: 0;
background: transparent;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #6a6a6a;
text-decoration: underline;
text-underline-offset: 4px;
text-decoration-thickness: 1px;
transition: color 0.2s ease;
}
.secondaryBtn:hover,
.secondaryBtn:focus-visible {
color: var(--color-black);
}
.secondaryBtn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.primaryBtn {
min-width: 107px;
min-height: 29px;
margin-left: auto;
padding: 0 18px;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.08em;
}
.error {
margin: 0;
padding: 10px 12px;
border-radius: 5px;
background: #f6f6f6;
border: 1px solid #e8e8e8;
font-size: 12px;
font-weight: 400;
line-height: 1.45;
color: #4a4a4a;
width: 100%;
}
.note {
margin-top: 28px;
font-size: 10.5px;
font-weight: 400;
color: #8e8e8e;
text-align: center;
text-transform: capitalize;
}
.note a,
.noteLink {
color: #8e8e8e;
background: none;
border: 0;
padding: 0;
font: inherit;
font-size: inherit;
letter-spacing: inherit;
text-transform: inherit;
cursor: pointer;
}
.note a:hover,
.noteLink:hover {
color: var(--color-black);
}
.hint {
margin: 0 0 4px;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #8e8e8e;
}
.note em {
font-style: normal;
color: #cacaca;
}
.rule {
border: 0;
border-top: 1px solid #ececec;
margin: 20px 0 14px;
width: 100%;
}
.links {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
font-size: 10px;
font-weight: 400;
color: #8e8e8e;
width: 100%;
}
.links a {
color: inherit;
}
.socials {
margin-top: 16px;
display: flex;
justify-content: center;
gap: 18px;
width: 100%;
}
.socials img {
object-fit: contain;
}
@media (max-width: 900px) {
.card {
grid-template-columns: 1fr;
min-height: auto;
}
.visual {
min-height: 220px;
border-radius: 5px 5px 0 0;
}
.ship {
left: 50%;
bottom: 0;
transform: translateX(-50%);
width: auto;
height: 88%;
}
.content {
padding: 32px 24px 28px;
border-radius: 0 0 5px 5px;
}
.brand,
.form,
.note,
.rule,
.links,
.socials {
width: 100%;
}
.actions {
flex-direction: column-reverse;
align-items: stretch;
}
.secondaryBtn,
.primaryBtn {
width: 100%;
min-width: 0;
}
.secondaryBtn {
justify-content: center;
}
}