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">
|
2021-11-18 18:55:37 +00:00
|
|
|
|
<div v-if="isActivatedBannerShown" class="login-area__content-area__activation-banner" :class="{'error': isActivatedError}">
|
|
|
|
|
<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>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="login-area__content-area__container">
|
|
|
|
|
<div class="login-area__content-area__container__title-area">
|
|
|
|
|
<h1 class="login-area__content-area__container__title-area__title" aria-roledescription="sign-in-title">Sign In</h1>
|
|
|
|
|
|
|
|
|
|
<div class="login-area__expand" @click.stop="toggleDropdown">
|
|
|
|
|
<span class="login-area__expand__value">{{ satelliteName }}</span>
|
|
|
|
|
<BottomArrowIcon />
|
|
|
|
|
<div v-if="isDropdownShown" v-click-outside="closeDropdown" class="login-area__expand__dropdown">
|
|
|
|
|
<div class="login-area__expand__dropdown__item" @click.stop="closeDropdown">
|
|
|
|
|
<SelectedCheckIcon />
|
|
|
|
|
<span class="login-area__expand__dropdown__item__name">{{ satelliteName }}</span>
|
2021-07-20 10:40:06 +01:00
|
|
|
|
</div>
|
2021-11-18 18:55:37 +00:00
|
|
|
|
<a v-for="sat in partneredSatellites" :key="sat.id" class="login-area__expand__dropdown__item" :href="sat.address + '/login'">
|
|
|
|
|
{{ sat.name }}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<template v-if="!isMFARequired">
|
|
|
|
|
<div v-if="isBadLoginMessageShown" class="info-box error">
|
|
|
|
|
<div class="info-box__header">
|
|
|
|
|
<WarningIcon />
|
|
|
|
|
<h2 class="info-box__header__label">Invalid Credentials</h2>
|
2021-07-20 10:40:06 +01:00
|
|
|
|
</div>
|
2021-11-18 18:55:37 +00:00
|
|
|
|
<p class="info-box__message">
|
|
|
|
|
Your login credentials are incorrect. If you didn’t receive an activation email, click <router-link :to="activatePath" class="link">here</router-link>.
|
|
|
|
|
</p>
|
2021-07-20 10:40:06 +01:00
|
|
|
|
</div>
|
2021-11-18 18:55:37 +00:00
|
|
|
|
<div class="login-area__input-wrapper">
|
2021-07-20 10:40:06 +01:00
|
|
|
|
<HeaderlessInput
|
|
|
|
|
label="Email Address"
|
2022-01-05 11:07:03 +00:00
|
|
|
|
placeholder="user@example.com"
|
2021-07-20 10:40:06 +01:00
|
|
|
|
: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-11-18 18:55:37 +00:00
|
|
|
|
<div 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-11-18 18:55:37 +00:00
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<div class="info-box">
|
|
|
|
|
<div class="info-box__header">
|
|
|
|
|
<GreyWarningIcon />
|
|
|
|
|
<h2 class="info-box__header__label">
|
|
|
|
|
Two-Factor Authentication Required
|
|
|
|
|
</h2>
|
2021-07-20 12:34:40 +01:00
|
|
|
|
</div>
|
2021-11-18 18:55:37 +00:00
|
|
|
|
<p class="info-box__message">
|
|
|
|
|
You'll need the six-digit code from your authenticator app to continue.
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="login-area__input-wrapper">
|
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
|
|
|
|
</div>
|
2021-11-18 18:55:37 +00:00
|
|
|
|
<span v-if="!isRecoveryCodeState" class="login-area__content-area__container__recovery" @click="setRecoveryCodeState">
|
|
|
|
|
Or use recovery code
|
2021-07-20 12:34:40 +01:00
|
|
|
|
</span>
|
2021-11-18 18:55:37 +00:00
|
|
|
|
</template>
|
|
|
|
|
<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-11-18 18:55:37 +00:00
|
|
|
|
<p class="login-area__content-area__footer-item">
|
|
|
|
|
Forgot your sign in details?
|
|
|
|
|
<router-link :to="forgotPasswordPath" class="link">
|
|
|
|
|
Reset Password
|
|
|
|
|
</router-link>
|
|
|
|
|
</p>
|
|
|
|
|
<router-link :to="registerPath" class="login-area__content-area__footer-item link">
|
|
|
|
|
Need to create an account?
|
|
|
|
|
</router-link>
|
2021-07-20 10:40:06 +01:00
|
|
|
|
</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-11-18 18:55:37 +00:00
|
|
|
|
import WarningIcon from '@/../static/images/accessGrants/warning.svg';
|
|
|
|
|
import GreyWarningIcon 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-11-18 18:55:37 +00:00
|
|
|
|
import { ErrorUnauthorized } from '@/api/errors/ErrorUnauthorized';
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
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,
|
2021-11-18 18:55:37 +00:00
|
|
|
|
GreyWarningIcon,
|
2021-07-20 12:34:40 +01:00
|
|
|
|
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;
|
2022-02-14 20:06:35 +00:00
|
|
|
|
public returnURL: string = RouteConfig.ProjectDashboard.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-11-18 18:55:37 +00:00
|
|
|
|
public isBadLoginMessageShown = 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-11-18 18:55:37 +00:00
|
|
|
|
public readonly activatePath: string = RouteConfig.Activate.path;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
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';
|
2022-02-14 20:06:35 +00:00
|
|
|
|
|
|
|
|
|
this.returnURL = this.$route.query.return_url as string || this.returnURL;
|
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;
|
|
|
|
|
|
2022-02-18 12:52:23 +00:00
|
|
|
|
this.isRecoveryCodeState ? this.recoveryCode = value.trim() : this.passcode = value.trim();
|
2021-07-20 12:34:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
2021-07-20 10:40:06 +01:00
|
|
|
|
/**
|
|
|
|
|
* Sets email string on change.
|
|
|
|
|
*/
|
|
|
|
|
public setEmail(value: string): void {
|
2022-02-18 12:52:23 +00:00
|
|
|
|
this.email = value.trim();
|
2021-07-20 10:40:06 +01:00
|
|
|
|
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 {
|
2022-02-18 12:52:23 +00: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;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
this.isLoading = false;
|
|
|
|
|
return;
|
2021-07-20 12:34:40 +01:00
|
|
|
|
}
|
|
|
|
|
|
2021-11-18 18:55:37 +00:00
|
|
|
|
if (error instanceof ErrorUnauthorized) {
|
|
|
|
|
this.isBadLoginMessageShown = true;
|
|
|
|
|
this.isLoading = false;
|
|
|
|
|
return;
|
|
|
|
|
}
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
2021-11-18 18:55:37 +00:00
|
|
|
|
await this.$notify.error(error.message);
|
|
|
|
|
this.isLoading = false;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await this.$store.dispatch(APP_STATE_ACTIONS.CHANGE_STATE, AppState.LOADING);
|
|
|
|
|
this.isLoading = false;
|
2021-11-03 14:03:30 +00:00
|
|
|
|
|
2022-02-14 20:06:35 +00:00
|
|
|
|
await this.$router.push(this.returnURL);
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Validates email and password input strings.
|
|
|
|
|
*/
|
|
|
|
|
private validateFields(): boolean {
|
|
|
|
|
let isNoErrors = true;
|
|
|
|
|
|
2022-02-18 12:52:23 +00:00
|
|
|
|
if (!Validator.email(this.email)) {
|
2021-07-20 10:40:06 +01:00
|
|
|
|
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;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
margin: 70px 0;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__divider {
|
|
|
|
|
margin: 0 20px;
|
|
|
|
|
height: 22px;
|
|
|
|
|
width: 2px;
|
|
|
|
|
background-color: #acbace;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__input-wrapper {
|
|
|
|
|
margin-top: 20px;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
width: 100%;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__content-area {
|
|
|
|
|
background-color: #f5f6fa;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
padding: 0 20px;
|
|
|
|
|
margin-bottom: 50px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border-radius: 20px;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
box-sizing: border-box;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
|
|
&__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;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
width: 610px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
border-radius: 20px;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
margin-bottom: 20px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
|
|
&__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-11-18 18:55:37 +00:00
|
|
|
|
font-family: 'font_bold', 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;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-18 18:55:37 +00:00
|
|
|
|
&__recovery {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 19px;
|
|
|
|
|
color: #0068dc;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 100%;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
2021-07-20 12:34:40 +01:00
|
|
|
|
}
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
2021-11-18 18:55:37 +00:00
|
|
|
|
&__footer-item {
|
2021-07-20 12:34:40 +01:00
|
|
|
|
margin-top: 30px;
|
2021-11-18 18:55:37 +00:00
|
|
|
|
font-size: 14px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.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-11-18 18:55:37 +00:00
|
|
|
|
.link {
|
|
|
|
|
color: #376fff;
|
|
|
|
|
font-family: 'font_medium', sans-serif;
|
|
|
|
|
}
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
2021-11-18 18:55:37 +00:00
|
|
|
|
.info-box {
|
|
|
|
|
background-color: #f7f8fb;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
padding: 20px;
|
|
|
|
|
margin-top: 25px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
&.error {
|
|
|
|
|
background-color: #fff9f7;
|
|
|
|
|
border: 1px solid #f84b00;
|
|
|
|
|
}
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
2021-11-18 18:55:37 +00:00
|
|
|
|
&__header {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
|
font-family: 'font_bold', sans-serif;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #1b2533;
|
|
|
|
|
margin-left: 15px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
2021-11-18 18:55:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__message {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #1b2533;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 750px) {
|
|
|
|
|
|
|
|
|
|
.login-area {
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
|
|
&__content-area {
|
|
|
|
|
|
|
|
|
|
&__container {
|
2021-11-18 18:55:37 +00:00
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 60px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__expand {
|
|
|
|
|
|
|
|
|
|
&__dropdown {
|
|
|
|
|
left: -200px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media screen and (max-width: 414px) {
|
|
|
|
|
|
|
|
|
|
.login-area {
|
|
|
|
|
|
|
|
|
|
&__logo-wrapper {
|
2021-11-18 18:55:37 +00:00
|
|
|
|
margin: 40px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&__content-area {
|
2021-11-18 18:55:37 +00:00
|
|
|
|
padding: 0;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
|
|
|
|
|
&__container {
|
2021-11-18 18:55:37 +00:00
|
|
|
|
padding: 0 20px 20px 20px;
|
2021-07-20 10:40:06 +01:00
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|