2021-07-20 10:40:06 +01:00
|
|
|
// Copyright (C) 2021 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div class="login-area" @keyup.enter="onLogin">
|
|
|
|
<div class="login-area__logo-wrapper">
|
2021-08-10 14:14:37 +01:00
|
|
|
<LogoIcon class="logo" @click="onLogoClick" />
|
2021-07-20 10:40:06 +01:00
|
|
|
</div>
|
|
|
|
<div class="login-area__content-area">
|
|
|
|
<div class="login-area__content-area">
|
2021-08-10 14:14:37 +01:00
|
|
|
<div v-if="isActivatedBannerShown" class="login-area__content-area__activation-banner" :class="{'error': isActivatedError}">
|
2021-07-26 17:11:44 +01:00
|
|
|
<p class="login-area__content-area__activation-banner__message">
|
|
|
|
<template v-if="!isActivatedError"><b>Success!</b> Account verified.</template>
|
|
|
|
<template v-else><b>Oops!</b> This account has already been verified.</template>
|
|
|
|
</p>
|
2021-07-20 10:40:06 +01:00
|
|
|
</div>
|
|
|
|
<div class="login-area__content-area__container">
|
|
|
|
<div class="login-area__content-area__container__title-area">
|
2021-10-22 17:54:00 +01:00
|
|
|
<h1 class="login-area__content-area__container__title-area__title" aria-roledescription="sign-in-title">Sign In</h1>
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
<div class="login-area__expand" @click.stop="toggleDropdown">
|
|
|
|
<span class="login-area__expand__value">{{ satelliteName }}</span>
|
|
|
|
<BottomArrowIcon />
|
2021-08-10 14:14:37 +01:00
|
|
|
<div v-if="isDropdownShown" v-click-outside="closeDropdown" class="login-area__expand__dropdown">
|
2021-07-20 10:40:06 +01:00
|
|
|
<div class="login-area__expand__dropdown__item" @click.stop="closeDropdown">
|
|
|
|
<SelectedCheckIcon />
|
|
|
|
<span class="login-area__expand__dropdown__item__name">{{ satelliteName }}</span>
|
|
|
|
</div>
|
2021-08-05 12:07:45 +01:00
|
|
|
<a v-for="sat in partneredSatellites" :key="sat.id" class="login-area__expand__dropdown__item" :href="sat.address + '/login'">
|
2021-07-20 10:40:06 +01:00
|
|
|
{{ sat.name }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-08-10 14:14:37 +01:00
|
|
|
<div v-if="!isMFARequired" class="login-area__input-wrapper">
|
2021-07-20 10:40:06 +01:00
|
|
|
<HeaderlessInput
|
|
|
|
label="Email Address"
|
|
|
|
placeholder="example@email.com"
|
|
|
|
:error="emailError"
|
2021-09-16 13:04:26 +01:00
|
|
|
role-description="email"
|
2021-08-10 14:14:37 +01:00
|
|
|
@setData="setEmail"
|
2021-07-20 10:40:06 +01:00
|
|
|
/>
|
|
|
|
</div>
|
2021-08-10 14:14:37 +01:00
|
|
|
<div v-if="!isMFARequired" class="login-area__input-wrapper">
|
2021-07-20 10:40:06 +01:00
|
|
|
<HeaderlessInput
|
|
|
|
label="Password"
|
|
|
|
placeholder="Password"
|
|
|
|
:error="passwordError"
|
|
|
|
is-password="true"
|
2021-09-16 13:04:26 +01:00
|
|
|
role-description="password"
|
2021-08-10 14:14:37 +01:00
|
|
|
@setData="setPassword"
|
2021-07-20 10:40:06 +01:00
|
|
|
/>
|
|
|
|
</div>
|
2021-08-10 14:14:37 +01:00
|
|
|
<div v-if="isMFARequired" class="login-area__content-area__container__mfa">
|
2021-07-20 12:34:40 +01:00
|
|
|
<div class="login-area__content-area__container__mfa__info">
|
|
|
|
<div class="login-area__content-area__container__mfa__info__title-area">
|
2021-08-10 14:14:37 +01:00
|
|
|
<WarningIcon />
|
2021-07-20 12:34:40 +01:00
|
|
|
<h2 class="login-area__content-area__container__mfa__info__title-area__txt">
|
|
|
|
Two-Factor Authentication Required
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<p class="login-area__content-area__container__mfa__info__msg">
|
|
|
|
You'll need the six-digit code from your authenticator app to continue.
|
|
|
|
</p>
|
|
|
|
</div>
|
2021-08-10 14:14:37 +01:00
|
|
|
<ConfirmMFAInput ref="mfaInput" :on-input="onConfirmInput" :is-error="isMFAError" :is-recovery="isRecoveryCodeState" />
|
2021-07-20 12:34:40 +01:00
|
|
|
<span v-if="!isRecoveryCodeState" class="login-area__content-area__container__mfa__recovery" @click="setRecoveryCodeState">
|
|
|
|
Or use recovery code
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<p class="login-area__content-area__container__button" :class="{ 'disabled-button': isLoading }" @click.prevent="onLogin">Sign In</p>
|
|
|
|
<span v-if="isMFARequired" class="login-area__content-area__container__cancel" :class="{ disabled: isLoading }" @click.prevent="onMFACancelClick">
|
|
|
|
Cancel
|
|
|
|
</span>
|
2021-07-20 10:40:06 +01:00
|
|
|
</div>
|
2021-08-10 14:14:37 +01:00
|
|
|
<p class="login-area__content-area__reset-msg">
|
|
|
|
Forgot your sign in details?
|
2021-07-20 12:34:40 +01:00
|
|
|
<router-link :to="forgotPasswordPath" class="login-area__content-area__reset-msg__link">
|
2021-07-20 10:40:06 +01:00
|
|
|
Reset Password
|
|
|
|
</router-link>
|
2021-07-20 12:34:40 +01:00
|
|
|
</p>
|
|
|
|
<router-link :to="registerPath" class="login-area__content-area__register-link">
|
|
|
|
Need to create an account?
|
|
|
|
</router-link>
|
2021-07-20 10:40:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { Component, Vue } from 'vue-property-decorator';
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
import ConfirmMFAInput from '@/components/account/mfa/ConfirmMFAInput.vue';
|
2021-07-20 10:40:06 +01:00
|
|
|
import HeaderlessInput from '@/components/common/HeaderlessInput.vue';
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
import WarningIcon from '@/../static/images/common/greyWarning.svg';
|
2021-07-20 10:40:06 +01:00
|
|
|
import BottomArrowIcon from '@/../static/images/common/lightBottomArrow.svg';
|
|
|
|
import SelectedCheckIcon from '@/../static/images/common/selectedCheck.svg';
|
2021-08-19 19:25:03 +01:00
|
|
|
import LogoIcon from '@/../static/images/logo.svg';
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
import { AuthHttpApi } from '@/api/auth';
|
2021-07-20 12:34:40 +01:00
|
|
|
import { ErrorMFARequired } from '@/api/errors/ErrorMFARequired';
|
2021-07-20 10:40:06 +01:00
|
|
|
import { RouteConfig } from '@/router';
|
|
|
|
import { PartneredSatellite } from '@/types/common';
|
|
|
|
import { APP_STATE_ACTIONS } from '@/utils/constants/actionNames';
|
|
|
|
import { AppState } from '@/utils/constants/appStateEnum';
|
|
|
|
import { Validator } from '@/utils/validation';
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
interface ClearInput {
|
|
|
|
clearInput(): void;
|
|
|
|
}
|
|
|
|
|
2021-08-31 14:49:45 +01:00
|
|
|
// @vue/component
|
2021-07-20 10:40:06 +01:00
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
HeaderlessInput,
|
|
|
|
BottomArrowIcon,
|
|
|
|
SelectedCheckIcon,
|
|
|
|
LogoIcon,
|
2021-07-20 12:34:40 +01:00
|
|
|
WarningIcon,
|
|
|
|
ConfirmMFAInput,
|
2021-07-20 10:40:06 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
export default class Login extends Vue {
|
2021-08-02 19:17:49 +01:00
|
|
|
private email = '';
|
|
|
|
private password = '';
|
|
|
|
private passcode = '';
|
|
|
|
private recoveryCode = '';
|
|
|
|
private isLoading = false;
|
|
|
|
private emailError = '';
|
|
|
|
private passwordError = '';
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
private readonly auth: AuthHttpApi = new AuthHttpApi();
|
|
|
|
|
|
|
|
public readonly forgotPasswordPath: string = RouteConfig.ForgotPassword.path;
|
2021-08-02 19:17:49 +01:00
|
|
|
public isActivatedBannerShown = false;
|
|
|
|
public isActivatedError = false;
|
2021-07-20 12:34:40 +01:00
|
|
|
public isMFARequired = false;
|
|
|
|
public isMFAError = false;
|
|
|
|
public isRecoveryCodeState = false;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
// Tardigrade logic
|
2021-08-02 19:17:49 +01:00
|
|
|
public isDropdownShown = false;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
public readonly registerPath: string = RouteConfig.Register.path;
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
public $refs!: {
|
|
|
|
mfaInput: ConfirmMFAInput & ClearInput;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Clears confirm MFA input.
|
|
|
|
*/
|
2021-08-05 12:07:45 +01:00
|
|
|
public clearConfirmMFAInput(): void {
|
2021-07-20 12:34:40 +01:00
|
|
|
this.$refs.mfaInput.clearInput();
|
|
|
|
}
|
|
|
|
|
2021-07-20 10:40:06 +01:00
|
|
|
/**
|
|
|
|
* Lifecycle hook after initial render.
|
|
|
|
* Makes activated banner visible on successful account activation.
|
|
|
|
*/
|
|
|
|
public mounted(): void {
|
2021-07-26 17:11:44 +01:00
|
|
|
this.isActivatedBannerShown = !!this.$route.query.activated;
|
|
|
|
this.isActivatedError = this.$route.query.activated === 'false';
|
2021-07-20 10:40:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reloads page.
|
|
|
|
*/
|
|
|
|
public onLogoClick(): void {
|
|
|
|
location.reload();
|
|
|
|
}
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
/**
|
|
|
|
* Sets page to recovery code state.
|
|
|
|
*/
|
|
|
|
public setRecoveryCodeState(): void {
|
|
|
|
this.isMFAError = false;
|
|
|
|
this.passcode = '';
|
|
|
|
this.clearConfirmMFAInput();
|
|
|
|
this.isRecoveryCodeState = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cancels MFA passcode input state.
|
|
|
|
*/
|
|
|
|
public onMFACancelClick(): void {
|
|
|
|
this.isMFARequired = false;
|
|
|
|
this.isRecoveryCodeState = false;
|
|
|
|
this.isMFAError = false;
|
|
|
|
this.passcode = '';
|
|
|
|
this.recoveryCode = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets confirmation passcode value from input.
|
|
|
|
*/
|
|
|
|
public onConfirmInput(value: string): void {
|
|
|
|
this.isMFAError = false;
|
|
|
|
|
|
|
|
this.isRecoveryCodeState ? this.recoveryCode = value : this.passcode = value;
|
|
|
|
}
|
|
|
|
|
2021-07-20 10:40:06 +01:00
|
|
|
/**
|
|
|
|
* Sets email string on change.
|
|
|
|
*/
|
|
|
|
public setEmail(value: string): void {
|
|
|
|
this.email = value;
|
|
|
|
this.emailError = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets password string on change.
|
|
|
|
*/
|
|
|
|
public setPassword(value: string): void {
|
|
|
|
this.password = value;
|
|
|
|
this.passwordError = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Name of the current satellite.
|
|
|
|
*/
|
|
|
|
public get satelliteName(): string {
|
|
|
|
return this.$store.state.appStateModule.satelliteName;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Information about partnered satellites, including name and signup link.
|
|
|
|
*/
|
|
|
|
public get partneredSatellites(): PartneredSatellite[] {
|
|
|
|
return this.$store.state.appStateModule.partneredSatellites;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Toggles satellite selection dropdown visibility (Tardigrade).
|
|
|
|
*/
|
|
|
|
public toggleDropdown(): void {
|
|
|
|
this.isDropdownShown = !this.isDropdownShown;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Closes satellite selection dropdown (Tardigrade).
|
|
|
|
*/
|
|
|
|
public closeDropdown(): void {
|
|
|
|
this.isDropdownShown = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Performs login action.
|
|
|
|
* Then changes location to project dashboard page.
|
|
|
|
*/
|
|
|
|
public async onLogin(): Promise<void> {
|
|
|
|
if (this.isLoading) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.isLoading = true;
|
|
|
|
|
|
|
|
if (!this.validateFields()) {
|
|
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
2021-07-20 12:34:40 +01:00
|
|
|
await this.auth.token(this.email, this.password, this.passcode, this.recoveryCode);
|
2021-07-20 10:40:06 +01:00
|
|
|
} catch (error) {
|
2021-07-20 12:34:40 +01:00
|
|
|
if (error instanceof ErrorMFARequired) {
|
|
|
|
if (this.isMFARequired) this.isMFAError = true;
|
|
|
|
|
|
|
|
this.isMFARequired = true;
|
|
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.isMFARequired) {
|
|
|
|
this.isMFAError = true;
|
|
|
|
} else {
|
|
|
|
await this.$notify.error(error.message);
|
|
|
|
}
|
|
|
|
|
2021-07-20 10:40:06 +01:00
|
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.CHANGE_STATE, AppState.LOADING);
|
|
|
|
this.isLoading = false;
|
|
|
|
await this.$router.push(RouteConfig.ProjectDashboard.path);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Validates email and password input strings.
|
|
|
|
*/
|
|
|
|
private validateFields(): boolean {
|
|
|
|
let isNoErrors = true;
|
|
|
|
|
|
|
|
if (!Validator.email(this.email.trim())) {
|
|
|
|
this.emailError = 'Invalid Email';
|
|
|
|
isNoErrors = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!Validator.password(this.password)) {
|
|
|
|
this.passwordError = 'Invalid Password';
|
|
|
|
isNoErrors = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return isNoErrors;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.login-area {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
font-family: 'font_regular', sans-serif;
|
|
|
|
background-color: #f5f6fa;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
min-height: 100%;
|
|
|
|
overflow-y: scroll;
|
|
|
|
|
|
|
|
&__logo-wrapper {
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 70px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__divider {
|
|
|
|
margin: 0 20px;
|
|
|
|
height: 22px;
|
|
|
|
width: 2px;
|
|
|
|
background-color: #acbace;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__input-wrapper {
|
|
|
|
margin-top: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__expand {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&__value {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
color: #acbace;
|
|
|
|
margin-right: 10px;
|
2021-07-28 15:37:47 +01:00
|
|
|
font-family: 'font_regular', sans-serif;
|
2021-07-20 10:40:06 +01:00
|
|
|
font-weight: 700;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__dropdown {
|
|
|
|
position: absolute;
|
|
|
|
top: 35px;
|
|
|
|
left: 0;
|
|
|
|
background-color: #fff;
|
|
|
|
z-index: 1000;
|
|
|
|
border: 1px solid #c5cbdb;
|
|
|
|
box-shadow: 0 8px 34px rgba(161, 173, 185, 0.41);
|
|
|
|
border-radius: 6px;
|
|
|
|
min-width: 250px;
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: flex-start;
|
|
|
|
padding: 12px 25px;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
color: #7e8b9c;
|
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&__name {
|
|
|
|
font-family: 'font_bold', sans-serif;
|
|
|
|
margin-left: 15px;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
color: #7e8b9c;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #f2f2f6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__link {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 191px;
|
|
|
|
height: 44px;
|
|
|
|
border: 2px solid #376fff;
|
|
|
|
border-radius: 6px;
|
|
|
|
color: #376fff;
|
|
|
|
background-color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #376fff;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content-area {
|
|
|
|
background-color: #f5f6fa;
|
|
|
|
padding: 35px 20px 0 20px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
height: calc(100% - 55px);
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
|
|
&__activation-banner {
|
|
|
|
padding: 20px;
|
|
|
|
background-color: rgba(39, 174, 96, 0.1);
|
|
|
|
border: 1px solid #27ae60;
|
2021-07-26 17:11:44 +01:00
|
|
|
color: #27ae60;
|
2021-07-20 10:40:06 +01:00
|
|
|
border-radius: 6px;
|
|
|
|
width: 570px;
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
2021-07-26 17:11:44 +01:00
|
|
|
&.error {
|
|
|
|
background-color: #fff3f2;
|
|
|
|
border: 1px solid #e30011;
|
|
|
|
color: #e30011;
|
|
|
|
}
|
|
|
|
|
2021-07-20 10:40:06 +01:00
|
|
|
&__message {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 60px 80px;
|
|
|
|
background-color: #fff;
|
|
|
|
min-width: 450px;
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
|
|
&__title-area {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
font-size: 24px;
|
|
|
|
line-height: 49px;
|
|
|
|
letter-spacing: -0.100741px;
|
|
|
|
color: #252525;
|
2021-07-28 15:37:47 +01:00
|
|
|
font-family: 'font_regular', sans-serif;
|
2021-07-20 10:40:06 +01:00
|
|
|
font-weight: 800;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__satellite {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
color: #848484;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__button {
|
2021-07-28 15:37:47 +01:00
|
|
|
font-family: 'font_regular', sans-serif;
|
2021-07-20 10:40:06 +01:00
|
|
|
font-weight: 700;
|
|
|
|
margin-top: 40px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
background-color: #376fff;
|
|
|
|
border-radius: 50px;
|
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
width: 100%;
|
|
|
|
height: 48px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #0059d0;
|
|
|
|
}
|
|
|
|
}
|
2021-07-20 12:34:40 +01:00
|
|
|
|
|
|
|
&__cancel {
|
|
|
|
align-self: center;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 21px;
|
|
|
|
color: #0068dc;
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 30px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__mfa {
|
|
|
|
margin-top: 25px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__info {
|
|
|
|
background: #f7f8fb;
|
|
|
|
border-radius: 6px;
|
|
|
|
padding: 20px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
|
|
&__title-area {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
&__txt {
|
|
|
|
font-family: 'font_Bold', sans-serif;
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 19px;
|
|
|
|
color: #1b2533;
|
|
|
|
margin-left: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__msg {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 19px;
|
|
|
|
color: #1b2533;
|
|
|
|
margin-top: 10px;
|
|
|
|
max-width: 410px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__recovery {
|
|
|
|
font-size: 16px;
|
|
|
|
line-height: 19px;
|
|
|
|
color: #0068dc;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-top: 20px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
2021-07-20 10:40:06 +01:00
|
|
|
}
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
&__reset-msg {
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 18px;
|
2021-07-20 10:40:06 +01:00
|
|
|
margin-top: 50px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&__link {
|
|
|
|
font-family: 'font_medium', sans-serif;
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 18px;
|
|
|
|
color: #376fff;
|
|
|
|
}
|
2021-07-20 12:34:40 +01:00
|
|
|
}
|
2021-07-20 10:40:06 +01:00
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
&__register-link {
|
|
|
|
font-family: 'font_medium', sans-serif;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 18px;
|
|
|
|
color: #376fff;
|
|
|
|
margin-top: 30px;
|
|
|
|
padding-bottom: 30px;
|
2021-07-20 10:40:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&__footer {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: flex-start;
|
|
|
|
margin-top: 140px;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
&__copyright {
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
color: #384b65;
|
|
|
|
padding-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__link {
|
|
|
|
font-size: 12px;
|
|
|
|
line-height: 18px;
|
|
|
|
margin-left: 30px;
|
|
|
|
color: #376fff;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.logo {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-07-20 12:34:40 +01:00
|
|
|
.disabled,
|
|
|
|
.disabled-button {
|
|
|
|
pointer-events: none;
|
|
|
|
color: #acb0bc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.disabled-button {
|
|
|
|
background-color: #dadde5;
|
|
|
|
border-color: #dadde5;
|
|
|
|
}
|
|
|
|
|
2021-07-20 10:40:06 +01:00
|
|
|
@media screen and (max-width: 750px) {
|
|
|
|
|
|
|
|
.login-area {
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
padding: 10px 20px;
|
|
|
|
width: calc(100% - 40px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content-area {
|
|
|
|
width: 90%;
|
|
|
|
margin: 0 auto;
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
min-width: 80%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__expand {
|
|
|
|
|
|
|
|
&__dropdown {
|
|
|
|
left: -200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 414px) {
|
|
|
|
|
|
|
|
.login-area {
|
|
|
|
|
|
|
|
&__logo-wrapper {
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__content-area {
|
|
|
|
padding: 30px 20px 0 20px;
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
padding: 20px 25px;
|
|
|
|
min-width: 90%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (max-width: 375px) {
|
|
|
|
|
|
|
|
.login-area {
|
|
|
|
|
|
|
|
&__content-area {
|
|
|
|
padding: 0 20px 100px 20px;
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
background: transparent;
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|