/* ============================================
   EVRINT - Auth Pages
   ============================================ */

.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Neural Canvas */
.auth-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.auth-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

/* Multiple glowing orbs */
.auth::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
    animation: pulse 10s ease-in-out infinite 2s;
}

.auth::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
    animation: pulse 12s ease-in-out infinite 4s;
}

/* Card */
.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: 24px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    animation: fadeUp 0.5s var(--ease);
    box-shadow: 0 0 80px rgba(59, 130, 246, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--white);
}

.auth-header p {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    position: relative;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-300);
}

.form-field .input-wrap {
    position: relative;
}

.form-field input {
    padding-left: 48px;
}

.form-field .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-500);
    pointer-events: none;
}

.form-field .toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    padding: 6px;
    cursor: pointer;
    transition: color var(--fast) var(--ease);
}

.form-field .toggle:hover {
    color: var(--gray-300);
}

.form-field .toggle svg {
    width: 18px;
    height: 18px;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-options a {
    color: var(--gray-400);
}

.form-options a:hover {
    color: var(--white);
}

/* Submit */
.auth-submit {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    font-size: 1rem;
}

.auth-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit.loading .spinner {
    display: block;
}

.auth-submit.loading .text {
    opacity: 0.7;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Messages */
.msg {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.875rem;
    display: none;
}

.msg.show {
    display: block;
    animation: fadeUp 0.3s var(--ease);
}

.msg.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.msg.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* Password Strength */
.strength {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.strength span {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background var(--fast) var(--ease);
}

.strength.weak span:nth-child(1) {
    background: var(--red);
}

.strength.medium span:nth-child(1),
.strength.medium span:nth-child(2) {
    background: var(--yellow);
}

.strength.strong span {
    background: var(--green);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    font-size: 0.9375rem;
}

/* Back */
.back-link {
    position: fixed;
    top: 28px;
    left: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 10;
    transition: color var(--fast) var(--ease);
}

.back-link:hover {
    color: var(--white);
    opacity: 1;
}

.back-link svg {
    width: 18px;
    height: 18px;
}