@use "../../styles/variables.scss" as *; .encrypted-content { display: flex; align-items: center; justify-content: center; } .encryption-notice { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--lightgray); border-radius: 8px; padding: 2rem 1.5rem; max-width: 450px; width: 100%; text-align: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); margin-top: 2rem; } .encryption-icon { font-size: 2.5rem; margin-bottom: 0.5rem; opacity: 0.7; } .encryption-notice h3 { margin: 0 0 0.5rem 0; color: var(--darkgray); font-size: 1.3rem; font-weight: 600; } .encryption-notice p { margin: 0 0 1.5rem 0; color: var(--gray); line-height: 1.4; font-size: 0.95rem; } .decrypted-content-wrapper { /* Reset any container styles that might interfere */ display: block; margin: 0; padding: 0; } .decrypt-form { display: flex; flex-direction: column; gap: 1rem; align-items: center; } .decrypt-password { width: 100%; box-sizing: border-box; padding: 0.75rem 1rem; border-radius: 5px; font-family: var(--bodyFont); font-size: 1rem; border: 1px solid var(--gray); background: rgba(0, 0, 0, 0); color: var(--dark); transition: border-color 0.2s ease; } .decrypt-password:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--secondary) 20%, transparent); } .decrypt-button { background: var(--secondary); color: var(--light); border: none; border-radius: 5px; padding: 0.75rem 2rem; font-family: var(--bodyFont); font-size: 1rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; min-width: 120px; } .decrypt-button:hover { background: color-mix(in srgb, var(--secondary) 90%, var(--dark)); transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--secondary) 30%, transparent); } .decrypt-button:active { transform: translateY(0); } .decrypt-loading { display: none; margin-top: 1rem; padding: 0.75rem 1rem; background: color-mix(in srgb, var(--secondary) 10%, var(--light)); border: 1px solid color-mix(in srgb, var(--secondary) 30%, transparent); border-radius: 5px; color: var(--secondary); font-size: 0.9rem; text-align: center; align-items: center; justify-content: center; gap: 0.5rem; } .loading-spinner { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--secondary) 20%, transparent); border-top: 2px solid var(--secondary); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .decrypt-error { display: none; margin-top: 1rem; padding: 0.75rem 1rem; background: color-mix(in srgb, #ef4444 10%, var(--light)); border: 1px solid color-mix(in srgb, #ef4444 30%, transparent); border-radius: 5px; color: #dc2626; font-size: 0.9rem; text-align: center; } @media (max-width: 600px) { .encryption-notice { padding: 1.5rem 1rem; margin: 1rem; } .decrypt-password, .decrypt-button { font-size: 16px; /* Prevent zoom on iOS */ } }