/* =============================================
   Architect Auth - Login / Register Page
   ============================================= */

.architect-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--ae-space-2xl) var(--ae-space-md);
    background: var(--ae-bg);
}

/* Card */
.architect-auth__card {
    background: var(--ae-card);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius-xl);
    box-shadow: var(--ae-shadow-xl);
    padding: var(--ae-space-2xl);
    width: 100%;
    max-width: 440px;
    animation: ae-fade-up 0.5s cubic-bezier(0.21, 1.02, 0.73, 1);
}

/* Header */
.architect-auth__header {
    text-align: center;
    margin-bottom: var(--ae-space-xl);
}

.architect-auth__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ae-primary-50), var(--ae-primary-100));
    border-radius: 18px;
    color: var(--ae-primary);
    margin-bottom: var(--ae-space-md);
}

.architect-auth__title {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: var(--ae-text);
    letter-spacing: -0.03em;
}

.architect-auth__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--ae-text-muted);
}

/* Tabs */
.architect-auth__tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--ae-space-lg);
    border-bottom: 2px solid var(--ae-border);
}

.architect-auth__tab {
    flex: 1;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--ae-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--ae-transition);
    font-family: var(--ae-font);
}

.architect-auth__tab:hover {
    color: var(--ae-text);
}

.architect-auth__tab--active {
    color: var(--ae-primary);
    border-bottom-color: var(--ae-primary);
}

/* Forms */
.architect-auth__form {
    display: none;
}

.architect-auth__form--active {
    display: block;
    animation: ae-fade-up 0.3s ease;
}

.architect-auth__form-desc {
    font-size: 14px;
    color: var(--ae-text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--ae-space-lg);
}

/* Fields */
.architect-auth__field {
    margin-bottom: var(--ae-space-md);
}

.architect-auth__field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ae-text);
    margin-bottom: 6px;
}

.architect-auth__field-wrap {
    position: relative;
}

.architect-auth__field input[type="text"],
.architect-auth__field input[type="email"],
.architect-auth__field input[type="password"] {
    display: block;
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    font-family: var(--ae-font);
    color: var(--ae-text);
    background: var(--ae-card);
    border: 1.5px solid var(--ae-border);
    border-radius: var(--ae-radius-sm);
    transition: all var(--ae-transition);
    box-sizing: border-box;
}

.architect-auth__field input:focus {
    outline: none;
    border-color: var(--ae-primary);
    box-shadow: var(--ae-shadow-glow);
}

.architect-auth__field input::placeholder {
    color: var(--ae-text-muted);
}

/* Password toggle */
.architect-auth__pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ae-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color var(--ae-transition);
}

.architect-auth__pw-toggle:hover { color: var(--ae-text); }

.architect-auth__field-wrap input[type="password"],
.architect-auth__field-wrap input[type="text"] {
    padding-right: 44px;
}

/* Password strength meter */
.architect-auth__pw-strength {
    margin-top: 8px;
}

.architect-auth__pw-strength-bar {
    height: 4px;
    background: var(--ae-border-light);
    border-radius: var(--ae-radius-full);
    overflow: hidden;
    margin-bottom: 4px;
}

.architect-auth__pw-strength-fill {
    height: 100%;
    border-radius: var(--ae-radius-full);
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.architect-auth__pw-strength-fill--weak { width: 25%; background: var(--ae-danger); }
.architect-auth__pw-strength-fill--fair { width: 50%; background: var(--ae-warning); }
.architect-auth__pw-strength-fill--good { width: 75%; background: #22c55e; }
.architect-auth__pw-strength-fill--strong { width: 100%; background: var(--ae-success); }

.architect-auth__pw-strength-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.architect-auth__pw-strength-text--weak { color: var(--ae-danger); }
.architect-auth__pw-strength-text--fair { color: var(--ae-warning); }
.architect-auth__pw-strength-text--good { color: #22c55e; }
.architect-auth__pw-strength-text--strong { color: var(--ae-success); }

/* Forgot password link */
.architect-auth__forgot {
    font-size: 12px;
    font-weight: 500;
    color: var(--ae-primary);
    text-decoration: none;
    transition: color var(--ae-transition);
}

.architect-auth__forgot:hover {
    color: var(--ae-primary-dark);
    text-decoration: underline;
}

/* Remember me */
.architect-auth__remember {
    margin-bottom: var(--ae-space-lg);
}

.architect-auth__remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ae-text-secondary);
    cursor: pointer;
}

.architect-auth__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ae-primary);
    border-radius: 4px;
}

/* Submit button */
.architect-auth__submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    margin-top: var(--ae-space-sm);
}

/* Tab switch links */
.architect-auth__switch {
    text-align: center;
    font-size: 13px;
    color: var(--ae-text-secondary);
    margin: var(--ae-space-lg) 0 0;
}

.architect-auth__switch a {
    color: var(--ae-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--ae-transition);
}

.architect-auth__switch a:hover {
    color: var(--ae-primary-dark);
    text-decoration: underline;
}

/* Notices */
.architect-auth__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--ae-radius-sm);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: var(--ae-space-lg);
    animation: ae-fade-up 0.3s ease;
}

.architect-auth__notice svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.architect-auth__notice p {
    margin: 0;
}

.architect-auth__notice p + p {
    margin-top: 4px;
}

.architect-auth__notice--success {
    background: var(--ae-success-light);
    color: var(--ae-success-dark);
    border: 1px solid var(--ae-success-200);
}

.architect-auth__notice--error {
    background: var(--ae-danger-light);
    color: var(--ae-danger-dark);
    border: 1px solid var(--ae-danger-100);
}

/* Footer */
.architect-auth__footer {
    font-size: 13px;
    color: var(--ae-text-muted);
    margin-top: var(--ae-space-xl);
    text-align: center;
}

.architect-auth__footer a {
    color: var(--ae-primary);
    text-decoration: none;
}

.architect-auth__footer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 480px) {
    .architect-auth {
        padding: var(--ae-space-lg) var(--ae-space-sm);
        min-height: auto;
    }

    .architect-auth__card {
        padding: var(--ae-space-lg);
        border-radius: var(--ae-radius-lg);
    }

    .architect-auth__logo {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .architect-auth__title {
        font-size: 20px;
    }
}
