/* Importing Root Css */
@import url(../../src/style/root.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Crimson Text";
    background: #101111;
    min-height: 100vh;
    color: var(--tertiary-text-color);
    font-size: clamp(.875rem, 1.2vw, .9375rem);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

input {
    outline: none;
}

.link-path {
    color: var(--theme-color);
    font-weight: 700;
    border-bottom: .125rem solid transparent;
}

.link-path:hover {
    border-bottom: .125rem solid var(--theme-color);
}

/* Main Authentication Form Style */
.auth-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 2.5rem;
}

/* Reset Password Layout */
.auth-layout.layout-reset-pass {
    justify-content: center;
    padding-bottom: 0;
}

/* Authentication Header */
.auth-header {
    position: relative;
    width: 100%;
    margin-bottom: 1.25rem;
    overflow: visible;
    white-space: nowrap;
}

/* Header Wrapper */
.auth-header-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 96px;
    margin: 1.5625rem 0;
    padding: 0;
}

/* Header Link */
.auth-header-wrapper a {
    height: 100%;
}

/* Text Content */
.text-content {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    width: min(25rem, 90%);
    gap: .75rem;
}

/* Link Logo */
.text-content img {
    width: clamp(8.75rem, 30vw, 11.875rem);
    height: auto;
}

/* Link Title */
.text-content span {
    font-size: 1.8125rem;
    font-weight: 600;
    border-bottom: solid .1875rem transparent;
    transition: border 0.3s ease;
}

/* Link Hover */
.auth-header-wrapper a:hover .text-content span {
    border-bottom: solid .1875rem var(--theme-color);
}

/* Authentication Form Login */
.auth-form {
    position: relative;
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    width: 100%;
    max-width: min(68.75rem, 100%);
    border: .9375rem solid #0c0c0c;
    border-radius: 1.25rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Reset Password Authentication */
.auth-form.auth-reset-pass {
    width: auto;
    max-width: min(40rem, 100%);
}

/* Design Form */
.design-form {
    width: 100%;
    overflow: hidden;
}

.design-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.design-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transition: transform 0.6s ease,
                opacity 0.4s ease;
}

/* Authentications PAGE */
.auth-login,
.auth-register,
.reset-credentials {
    display: flex;
    flex-direction: column;
    justify-self: flex-end;
    min-width: 29.0625rem;
    padding: 3.625rem 2.5625rem;
    background: #2b2b2b;
    box-shadow: -0.1875rem 0 .6563rem 0 rgba(0, 0, 0, 0.35);
    z-index: 2;
}

/* Title */
.title {
    margin: 0 auto;
    width: 100%;
}

.title h1 {
    margin-bottom: 2.1875rem;
    text-align: center;
    font-family: 'Crimson text';
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
}

.title.pass-reset {
    display: flex;
    align-items: center;
    justify-content: center;
}

.title.pass-reset h1 {
    width: 100%;
    max-width: 24.0625rem;
}

/* MAIN Form */
.content-form {
    display: block;
}

.content-form.login div,
.content-form.pass-reset div {
    margin-bottom: 2.0625rem;
}

.content-form.register div {
    margin-bottom: 1.6875rem;
}

.content-form input {
    border-radius: .625rem;
}

/* No Margin At Last Box */
.content-form div.last {
    margin-bottom: .9375rem !important;
}

/* Input Box Group */
.auth-input-box {
    position: relative;
    width: 100%;
    display: block;
    color: var(--primary-text-color);
}

/* Input Box */
.auth-input-box input {
    width: 100%;
    padding: .9375rem;
    border: .125rem solid transparent;
    transition: border 0.4s ease;
}

/* Input Box Label */
.auth-input-box label {
    position: absolute;
    top: 49%;
    left: .9375rem;
    transform: translateY(-49%);
    transition: top 0.3s ease;
    pointer-events: none;
}

/* Input Box Input Focus */
.auth-input-box input:focus{
    border: .125rem solid var(--theme-color);
}

/* Input Box Label Focus Animation */
.auth-input-box input:focus + label,
.auth-input-box input:valid + label {
    top: -0.6875rem;
    color: var(--tertiary-text-color);
}

/* Form Settings */
.auth-form-settings {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Remember Password */
.remember-password,
.terms-condition {
    display: flex;
    align-items: center;
    gap: .375rem;
    cursor: pointer;
    margin-bottom: 0 !important;
}

/* Forgot Password */
.forgot-password {
    display: block;
    color: var(--theme-color);
    font-weight: 800;
    align-items: center;
    margin-bottom: 0 !important;
}

/* Checkbox Style */
.custom-checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    cursor: pointer;
    user-select: none;
}

/* Hidden Default/Native Check Mark */
.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* CheckBox */
.checkmark {
    display: flex;
    width: 1rem;
    height: 1rem;
    border-radius: .25rem;
    padding: .1875rem;
    border: .125rem solid #888;
    background: transparent;
    transition: all 0.2 ease;
    place-items: center;
}

/* Custom Check Mark */
.checkmark::after {
    content: "";
    width: .25rem;
    height: .4375rem;
    border: solid #2b2b2b;
    border-width: 0 .125rem .125rem 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

/* Custom Checked State */
.custom-checkbox-container input:checked + .checkmark {
    background: var(--theme-color);
    border-color: var(--theme-color);
}

.custom-checkbox-container input:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}
/* Submit Button */
.auth-submit-button {
    width: 100%;
    display: block;
}

/* Submit Button Input */
.auth-submit-button input {
    width: 100%;
    padding: .9375rem;
    cursor: pointer;
    border: none;
    background: var(--theme-color);
    color: var(--tertiary-text-color);
    font-weight: 800;
    transition: transform 0.2s ease;
}

/* Submit Focus */
.auth-submit-button input:focus {
    transform: scale(0.97);
}

/* Option Line */
.option-line {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: .9375rem;
    align-items: center;
    justify-content: center;
}

.option-line hr {
    width: 100%;
}

.option-line span {
    min-width: 6.5625rem;
    text-align: center;
}

/* 3rd Party Buttons Group */
.auth-option-buttons-group {
    display: flex;
    width: 100%;
    justify-content: space-between;
    min-height: 2.5rem;
}

/* Continue Buttons */
.auth-option-buttons-group button {
    display: flex;
    width: clamp(8.75rem, 45%, 11.5rem);
    justify-content: center;
    align-items: center;
    gap: .3125rem;
    padding: .5rem;
    background: var(--tertiary-text-color);
    color: var(--primary-text-color);
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 1rem;
    transition: transform 0.2s ease;
}

.auth-option-buttons-group button img {
    width: 1.5625rem;
    height: 1.5625rem;
}

/* Buttons Focus */
.auth-option-buttons-group button:active {
    transform: scale(0.97);
}

/* Password Strength Percentage */
.password-strength {
    font-weight: 800;
    color: #888;
}

.password-strength.lowest {
    color: #E55346;
}

.password-strength.mid {
    color: #E5AD46;
}

.password-strength.highest {
    color: #46E563;
}