@import "part/base.css";
@import "part/form.css";
@import "part/rating.css";

/* animation */
.slide-down-enter-active,
.slide-down-leave-active {
    transition: max-height 0.5s ease;
    overflow: hidden;
}
.slide-down-enter-from,
.slide-down-leave-to {
    max-height: 0;
    opacity: 1;
}
.slide-down-enter-to,
.slide-down-leave-from {
    max-height: 500px;
    opacity: 1;
}

/* Login/Signup page */
.form-page {
    flex: 1;
    width: 100%;
}
div.form-overlay .login-form, div.form-overlay .signup-form, div.form-overlay .ext-feedback-form, div.form-overlay .forgot-password-form, div.form-overlay .reset-password-form, div.form-overlay .user-invitation-form, div.form-overlay .join-form, div.form-overlay .workspace-form {
    display: flex;
    align-items: center;
    justify-content: center;
}
div.form-overlay {
    width: 600px;
    max-width: 100%;
    padding: 48px 0;
    margin: 30px auto;
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 0 16px rgba(96, 128, 160, .16);
}
div.profile-form {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}
div.profile-form button.primary {
    margin: 0 auto;
    display: block;
}
div.my-reviews {
    width: 90%;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}
.my-reviews .review-form {
    box-shadow: none;
    padding: 0;
}
.my-reviews .review-form textarea {
    resize: vertical;
}
div.form-overlay .login-form>div, div.form-overlay .signup-form>div, div.form-overlay .ext-feedback-form>div, div.form-overlay .forgot-password-form>div, div.form-overlay .reset-password-form>div {
    width: 368px;
    max-width: 100%;
    margin: auto;
}
div.form-overlay .login-form div[data-step="2"], div.form-overlay .login-form div[data-step="3"], div.form-overlay .signup-form div[data-step="2"], div.form-overlay .signup-form div[data-step="3"] {
    display: none;
    width: 100%;
    animation: fadeIn .2s;
}
div.form-overlay .banner-danger, div.form-overlay .banner-success {
    display: none;
    margin-bottom: 16px;
    text-align: left;
}
div.form-overlay #openid_signin_methods.short {
    display: grid;
    grid-gap: 12px;
}
div.form-overlay .openid-button-google {
    overflow: hidden;
    height: 32px;
}
div.form-overlay .join-us, div.form-overlay .log-in, div.form-overlay .forgot-password, div.form-overlay .tnc {
    margin-top: 24px;
    font-size: 13px;
    font-weight: 500;
}
.resend-code-container .error-text {
    margin: 6px;
    text-align: center;
}
div.form-overlay .openid-button {
    overflow: hidden;
    position: relative;
    height: 32px;
    margin-bottom: 8px;
    box-shadow: 0 0 0 1px var(--colour-neutral-100);
    border-radius: 20px;
    transition: all .2s;
    cursor: pointer;
}
div.form-overlay .openid-button>button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 32px;
    padding: 0;
    /*font-weight: 500;*/
    color: var(--colour-system-text);
    cursor: pointer;
}
div.form-overlay .openid-button>button.openid-button-google-overlay {
    position: absolute;
    /*z-index: 10;*/
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background-color: #fff;
}
div.form-overlay .openid-button>button svg {
    position: absolute;
    top: 9px;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--colour-neutral);
}
div.form-overlay #openid_signin_methods.short .openid-button>button svg {
    position: relative;
    top: auto;
    left: auto;
    margin-right: 4px;
}
div.form-overlay #openid_signin_methods.short .openid-button>button .text {
    display: none;
}
div.form-overlay .openid-button:hover, div.form-overlay button.openid-button.success.active, div.form-overlay button.openid-button.info.active, div.form-overlay button.openid-button.danger.active {
    box-shadow: 0 0 0 1px var(--colour-primary);
    background-color: var(--colour-primary-10);
}
div.form-overlay .heading-desc {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 32px;
}
.code-input {
    display: grid;
    grid-column-gap: 10px;
}
.code-input input {
    border: 2px solid #cfd3da;
    border-radius: 8px;
    background: #fff;
    padding: 0;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
}
.code-input.code-input-6 {
    grid-template-columns: repeat(6, 1fr);
}
.code-input.code-input-6 input {
    height: 60px;
    font-size: 24px;
}
div.form-overlay .open-mail-client:not(:last-child) {
    margin-right: 24px;
}
div.form-overlay .open-mail-client {
    display: flex;
    align-items: center;
    justify-content: start;
    font-size: 13px;
    text-decoration: none;
}
div.form-overlay .open-mail-client img {
    height: 16px;
    margin-right: 8px;
}

.link-card {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    height: fit-content;
    margin-bottom: 15px;
}
.link-card:hover {
    border-color: #e6e9ff;
    background-color: #e6e9ff;
}
.link-container {
    width: 100%;
    height: 100%;
    display: inline-block;
    color: inherit;
    text-decoration: none;
}
.link-container .link-segments {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    align-items: center;
}
.link-container .link-columns {
    display: flex;
    flex-direction: column;
}
.link-container .link-columns p {
    margin: 5px 0;
}
.link-container .link-row-1 {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 10px;
    font-weight: 600;
    font-size: medium;
    color: #473bff;
}
.link-container .link-arrow {
    flex: 1 1;
    display: flex;
    justify-content: flex-end;
}

.card-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card-container .title {
    font-size: 1.6em;
    font-weight: bold;
    margin: 0.4em 0;
}
.card-container .subtitle {
    font-size: 1.1em;
    font-weight: normal;
    margin: 0.6em 0;
}

.header-panel {
    display: flex;
    width: 100%;
    padding: 12px 0 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.header-panel .panel-content {
    display: flex;
    flex-direction: row;
    max-width: 600px;
    gap: 30px;
    user-select: none;
}
.header-panel .panel-content .navigation {
    position: relative;
    display: inline-block;
    padding: 5px;
    color: var(--colour-neutral);
    font-weight: 500;
    text-decoration: none;
    outline: none;
}
.header-panel .panel-content .navigation.router-link-exact-active {
    border-bottom: 2px groove black;
    color: #000000;
    cursor: default;
}

div.statistic-form {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

@media screen and (max-width: 550px) {
    div.my-reviews, div.profile-form, div.statistic-form {
        width: 100%;
    }
}