/* ========================================
   AUTH PAGES STYLES (Login/Register)
   ======================================== */

.auth-page-wrapper {
    min-height: calc(100vh - 80px);
    /* Adjust for navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    background: var(--bg-secondary);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 3rem;
    /* rounded-[3rem] from design */
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .auth-card {
    background: var(--primary-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Top Nav inside Card */
.auth-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6);
}

.btn-back {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary-900);
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: var(--gray-100);
}

[data-theme="dark"] .btn-back {
    color: white;
}

[data-theme="dark"] .btn-back:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.auth-brand {
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-500);
    text-transform: uppercase;
}

/* Headlines */
.auth-header {
    padding: var(--space-8) var(--space-8) var(--space-4);
}

.auth-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--primary-900);
    margin-bottom: var(--space-2);
}

[data-theme="dark"] .auth-title {
    color: white;
}

.auth-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Form Fields */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: var(--space-2) 0;
}

.input-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-900);
    padding-bottom: var(--space-2);
    padding-left: var(--space-4);
}

[data-theme="dark"] .input-label {
    color: var(--gray-300);
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    height: 56px;
    /* h-14 */
    background-color: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    padding: 0 var(--space-6);
    font-size: var(--text-base);
    color: var(--primary-900);
    transition: all 0.2s;
}

[data-theme="dark"] .auth-input {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-500);
}

.auth-input.is-invalid {
    box-shadow: 0 0 0 2px var(--error);
    background-color: #fee2e2;
}

.password-toggle {
    position: absolute;
    right: var(--space-6);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.password-toggle span {
    font-size: 20px;
}

.password-toggle:hover {
    color: var(--accent-500);
}

.forgot-link {
    display: flex;
    justify-content: flex-end;
    padding: 0 var(--space-2);
}

.forgot-link a {
    color: var(--accent-500);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link a:hover {
    opacity: 0.8;
}

/* Primary Button */
.auth-actions {
    padding: var(--space-6) var(--space-8);
}

.btn-auth-primary {
    width: 100%;
    height: 56px;
    background-color: var(--accent-500);
    color: var(--primary-900);
    font-size: var(--text-lg);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 245, 212, 0.2);
    transition: all 0.2s;
}

.btn-auth-primary:hover {
    transform: scale(1.02);
}

.btn-auth-primary:active {
    transform: scale(0.98);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-8);
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--gray-200);
}

[data-theme="dark"] .divider-line {
    background-color: var(--gray-700);
}

.divider-text {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

/* Social Buttons */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-8) var(--space-12);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    height: 56px;
    background: transparent;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    /* Prevent spillover */
}

.btn-social img,
.btn-social svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

[data-theme="dark"] .btn-social {
    border-color: var(--gray-700);
    color: var(--gray-200);
}

.btn-social:hover {
    background-color: var(--gray-50);
}

[data-theme="dark"] .btn-social:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Footer Link */
.auth-footer {
    padding-bottom: var(--space-10);
    text-align: center;
    margin-top: auto;
}

.text-register {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.link-register {
    color: var(--accent-500);
    font-weight: 700;
    text-decoration: none;
    margin-left: var(--space-1);
}

.link-register:hover {
    text-decoration: underline;
}

/* Background Blobs */
.auth-bg-blob-1 {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(0, 245, 212, 0.1);
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}

.auth-bg-blob-2 {
    position: absolute;
    bottom: -6rem;
    left: -6rem;
    width: 16rem;
    height: 16rem;
    background-color: rgba(0, 245, 212, 0.05);
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}