/*=========================
   Table of Contents
=========================*/
/*
   1    workspace Login
   12   workspace Login Card
   27   workspace Login Header
   52   Divider
   81   Register
   101  Terms
   134  workspace Login Cover
   167  Responsive
   186  workspace Auth Info
   242  Forgot Password
*/

/*=========================
   workspace Login
=========================*/

.workspace-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 520px 1fr;
    background: var(--background);
}

/*=========================
   workspace Login Card
=========================*/

.workspace-login-card {
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 420px;
    padding: var(--space-8);
    background: transparent;
    border: none;
    box-shadow: none;
}

/*=========================
   workspace Login Header
=========================*/

.workspace-login-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.workspace-login-header h1 {
    font-size: var(--text-3xl);
    line-height: var(--heading-line-height);
    margin-bottom: var(--space-1);
}

.workspace-login-header p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/*=========================
   Divider
=========================*/

.workspace-login-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block: var(--space-6);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.workspace-login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.workspace-login-divider span {
    position: relative;
    padding-inline: var(--space-3);
    background: var(--background);
}

/*=========================
   Register
=========================*/

.workspace-login-register {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.workspace-login-register a {
    color: var(--primary);
    font-weight: var(--font-medium);
    text-decoration: none;
}

.workspace-login-register a:hover {
    text-decoration: underline;
}

/*=========================
   Terms
=========================*/

.form-terms {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-3);
    margin-block: var(--space-2);
}

.form-terms input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.form-terms label {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.form-terms label a {
    color: var(--primary);
    font-weight: var(--font-medium);
    text-decoration: none;
}

.form-terms label a:hover {
    text-decoration: underline;
}

/*=========================
   workspace Login Cover
=========================*/

.workspace-login-cover {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-login-cover-content {
    max-width: 520px;
    padding: var(--space-10);
    text-align: center;
    color: var(--white);
}

.workspace-login-cover-content h2 {
    color: var(--white);
    font-size: var(--text-3xl);
    line-height: var(--heading-line-height);
    margin-bottom: var(--space-4);
}

.workspace-login-cover-content p {
    color: var(--white-50);
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

/*=========================
   Responsive
=========================*/

@media (max-width: 1000px) {
    .workspace-login {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-5);
    }

    .workspace-login-card {
        padding: var(--space-5);
    }

    .workspace-login-cover {
        display: none;
    }
}

/*=========================
   workspace Auth Info
=========================*/

.workspace-auth-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--surface);
    border: var(--border-width) solid var(--success-10);
    border-radius: var(--radius-lg);
    color: var(--text);
    text-decoration: none;
    transition: all var(--motion-hover);
}

.workspace-auth-info:hover {
    background: var(--success-10);
    border-color: var(--success);
    transform: translateY(-2px);
}

.workspace-auth-info-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--success-10);
    color: var(--success);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    transition: all var(--motion-hover);
}

.workspace-auth-info:hover .workspace-auth-info-icon {
    background: var(--success);
    color: var(--white);
    transform: scale(1.05);
}

.workspace-auth-info-content strong {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: var(--font-semibold);
}

.workspace-auth-info-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

/*=========================
   Forgot Password
=========================*/

.workspace-login-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-2);
}

.workspace-login-forgot-link {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: color var(--motion-hover);
}

.workspace-login-forgot-link:hover {
    text-decoration: underline;
}

.workspace-login-back {
    display: flex;
    justify-content: center;
    margin-top: var(--space-4);
}

@media (max-width: 1100px) {
    .workspace-login {
        grid-template-columns: 1fr;
    }

    .workspace-login-cover {
        display: none;
    }
}
