/* Security Scan Page Styles - Authentic Postbank Design */

:root {
  --pb-blue-dark: #173568;
  --pb-blue-primary: #0a3478;
  --pb-blue-light: #1a5aad;
  --pb-red: #c41230;
  --pb-red-dark: #a3102a;
  --pb-green: #28a745;
  --pb-text-dark: #1a1a2e;
  --pb-text-body: #3a3f51;
  --pb-text-muted: #6c757d;
  --pb-bg-body: #f5f5f5;
  --pb-bg-white: #ffffff;
  --pb-border: #e0e0e0;
  --pb-border-light: #f0f1f5;
}

.security-scan {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--pb-bg-body);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pb-text-body);
}

/* ==================== LOGIN NOTICE BAR ==================== */
.security-scan__login-notice {
  background: #f5f5f5;
  border-bottom: 1px solid var(--pb-border);
  padding: 8px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .security-scan__login-notice {
    padding: 10px 32px;
  }
}

.security-scan__login-notice-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-scan__login-notice-text {
  color: var(--pb-text-dark);
  font-weight: 500;
}

.security-scan__login-notice-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--pb-blue-primary);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
}

.security-scan__login-notice-close {
  background: none;
  border: none;
  color: var(--pb-text-body);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.security-scan__login-notice-close:hover {
  color: var(--pb-text-dark);
}

/* ==================== YELLOW HEADER BAR ==================== */
.security-scan__header {
  background: #ffcc00;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .security-scan__header {
    height: 64px;
    padding: 0 32px;
  }
}

.security-scan__header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.security-scan__logo {
  display: flex;
  align-items: center;
}

.security-scan__logo-img {
  height: 38px;
  width: auto;
}

@media (min-width: 768px) {
  .security-scan__logo-img {
    height: 48px;
  }
}

.security-scan__header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (min-width: 768px) {
  .security-scan__header-right {
    gap: 32px;
  }
}

.security-scan__header-balance,
.security-scan__header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pb-text-dark);
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .security-scan__header-balance,
  .security-scan__header-user {
    font-size: 15px;
  }
}

.security-scan__header-icon {
  width: 20px;
  height: 20px;
  stroke: var(--pb-text-dark);
}

.security-scan__header-balance span {
  font-weight: 600;
}

.security-scan__header-user span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .security-scan__header-user span {
    max-width: none;
  }
}

/* ==================== MAIN CONTENT ==================== */
.security-scan__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 576px) {
  .security-scan__content {
    padding: 48px 24px;
  }
}

/* ==================== SHIELD ICON ==================== */
.security-scan__icon-container {
  margin-bottom: 24px;
}

.security-scan__shield {
  width: 80px;
  height: 80px;
  color: var(--pb-blue-primary);
  transition: all 0.5s ease;
}

@media (min-width: 576px) {
  .security-scan__shield {
    width: 96px;
    height: 96px;
  }
}

.security-scan__shield--scanning {
  animation: shield-pulse 2s ease-in-out infinite;
}

.security-scan__shield--complete {
  color: var(--pb-green);
  animation: shield-success 0.5s ease-out;
}

@keyframes shield-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

@keyframes shield-success {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.security-scan__pulse {
  animation: pulse-ring 1.5s ease-out infinite;
  transform-origin: center;
}

@keyframes pulse-ring {
  0% { r: 3; opacity: 1; }
  100% { r: 6; opacity: 0; }
}

.security-scan__checkmark {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: draw-check 0.5s ease-out forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* ==================== TITLE & SUBTITLE ==================== */
.security-scan__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--pb-text-dark);
  margin: 0 0 12px 0;
  text-align: center;
  line-height: 1.3;
}

@media (min-width: 576px) {
  .security-scan__title {
    font-size: 28px;
  }
}

.security-scan__subtitle {
  font-size: 15px;
  color: var(--pb-text-muted);
  margin: 0 0 32px 0;
  text-align: center;
  line-height: 1.6;
}

@media (min-width: 576px) {
  .security-scan__subtitle {
    font-size: 16px;
  }
}

/* ==================== PROGRESS BAR ==================== */
.security-scan__progress-container {
  width: 100%;
  margin-bottom: 32px;
}

.security-scan__progress-bar {
  height: 6px;
  background: var(--pb-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.security-scan__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pb-blue-primary) 0%, var(--pb-blue-light) 50%, var(--pb-blue-primary) 100%);
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.3s ease-out;
  animation: progress-shimmer 2s linear infinite;
}

@keyframes progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.security-scan__progress-text {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--pb-text-muted);
}

/* ==================== SCAN STEPS CARD ==================== */
.security-scan__steps {
  width: 100%;
  background: var(--pb-bg-white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border: 1px solid var(--pb-border);
}

@media (min-width: 576px) {
  .security-scan__steps {
    padding: 24px;
    border-radius: 12px;
  }
}

.security-scan__step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pb-border-light);
  transition: all 0.3s ease;
}

.security-scan__step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.security-scan__step:first-child {
  padding-top: 0;
}

.security-scan__step--active {
  background: linear-gradient(90deg, rgba(10, 52, 120, 0.04) 0%, transparent 100%);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 576px) {
  .security-scan__step--active {
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.security-scan__step--completed .security-scan__step-text {
  color: var(--pb-green);
}

.security-scan__step-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.security-scan__step-check {
  width: 24px;
  height: 24px;
  animation: pop-in 0.3s ease-out;
}

@keyframes pop-in {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.security-scan__step-spinner {
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.security-scan__step-pending {
  width: 24px;
  height: 24px;
  opacity: 0.4;
}

.security-scan__step-text {
  font-size: 14px;
  color: var(--pb-text-body);
  font-weight: 500;
  transition: color 0.3s ease;
  flex: 1;
}

@media (min-width: 576px) {
  .security-scan__step-text {
    font-size: 15px;
  }
}

.security-scan__step--active .security-scan__step-text {
  color: var(--pb-blue-primary);
  font-weight: 600;
}

/* ==================== ERROR STATE ==================== */
.security-scan__step--error {
  background: linear-gradient(90deg, rgba(196, 18, 48, 0.05) 0%, transparent 100%);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 576px) {
  .security-scan__step--error {
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.security-scan__step--error .security-scan__step-text {
  color: var(--pb-text-dark);
  font-weight: 600;
}

.security-scan__step-text--error {
  color: var(--pb-text-dark) !important;
  font-weight: 600 !important;
}

.security-scan__step-error {
  width: 24px;
  height: 24px;
  animation: pop-in 0.3s ease-out;
}

.security-scan__step-cancel {
  margin-left: auto;
  padding: 8px 16px;
  background: var(--pb-bg-white);
  color: var(--pb-text-body);
  border: 1px solid var(--pb-border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.security-scan__step-cancel:hover {
  background: var(--pb-bg-body);
  border-color: var(--pb-text-muted);
}

.security-scan__step-cancel:active {
  transform: translateY(0);
}

/* ==================== SECURITY NOTICE ==================== */
.security-scan__notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(10, 52, 120, 0.04);
  border-radius: 6px;
  border-left: 3px solid var(--pb-blue-primary);
  width: 100%;
}

.security-scan__notice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--pb-text-muted);
}

.security-scan__notice span {
  font-size: 13px;
  color: var(--pb-text-muted);
  line-height: 1.5;
}

/* ==================== FOOTER TEASERS ==================== */
.security-scan__footer-teasers {
  background: var(--pb-bg-white);
  border-top: 1px solid var(--pb-border);
  padding: 24px 16px;
}

@media (min-width: 768px) {
  .security-scan__footer-teasers {
    padding: 32px 24px;
  }
}

.security-scan__footer-teasers-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .security-scan__footer-teasers-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.security-scan__footer-teaser {
  display: flex;
  gap: 16px;
  padding: 16px;
  transition: background 0.2s ease;
  border-radius: 4px;
}

.security-scan__footer-teaser:hover {
  background: rgba(10, 52, 120, 0.04);
}

.security-scan__footer-teaser-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.security-scan__footer-teaser-icon svg {
  width: 100%;
  height: 100%;
}

.security-scan__footer-teaser-content h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--pb-blue-primary);
}

.security-scan__footer-teaser-content p {
  margin: 0;
  font-size: 14px;
  color: var(--pb-text-muted);
  line-height: 1.5;
}

/* ==================== FOOTER ==================== */
.security-scan__footer {
  background: #ffcc00;
  padding: 24px 16px;
}

@media (min-width: 576px) {
  .security-scan__footer {
    padding: 24px 32px;
  }
}

.security-scan__footer-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .security-scan__footer-links {
    gap: 12px 20px;
  }
}

.security-scan__footer-links a {
  color: var(--pb-blue-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.security-scan__footer-links a:hover {
  text-decoration: underline;
}

.security-scan__footer-copyright {
  font-size: 14px;
  color: #1a1a2e;
  line-height: 1.5;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
