/**
 * EfeMarin Before/After Converter - Main Stylesheet
 * Converted from Tailwind CSS to Vanilla CSS
 * All colors, animations, and responsive design preserved
 */

/* ========================================================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================================================== */

:root {
  /* EfeMarin Brand Colors - Pantone */
  --color-teal: #64a3ad;
  --color-teal-light: #6da5ae;
  --color-teal-lighter: #7eb0b8;
  --color-teal-dark: #5a8a92;
  --color-orange: #e9c168;
  --color-orange-light: #f5d589;
  
  /* Background Colors */
  --bg-primary: hsl(214, 32%, 97%);
  --bg-card: hsl(214, 30%, 99%);
  --bg-muted: hsl(220, 13%, 95%);
  
  /* Text Colors */
  --text-primary: hsl(215, 25%, 15%);
  --text-secondary: hsl(215, 16%, 47%);
  --text-muted: hsl(215, 16%, 65%);
  
  /* Border Colors */
  --border-primary: hsl(214, 20%, 88%);
  --border-card: hsl(214, 20%, 85%);
  
  /* Interactive States */
  --hover-overlay: rgba(0, 0, 0, 0.03);
  --active-overlay: rgba(0, 0, 0, 0.08);
  
  /* Shadows */
  --shadow-sm: 0px 2px 4px 0px rgba(0, 0, 0, 0.06);
  --shadow-md: 0px 6px 12px 0px rgba(0, 0, 0, 0.08);
  
  /* Border Radius */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
}

/* Dark Mode */
.dark {
  --bg-primary: hsl(215, 30%, 12%);
  --bg-card: hsl(215, 28%, 16%);
  --bg-muted: hsl(217, 33%, 18%);
  
  --text-primary: hsl(210, 25%, 98%);
  --text-secondary: hsl(215, 16%, 70%);
  --text-muted: hsl(215, 16%, 55%);
  
  --border-primary: hsl(215, 25%, 25%);
  --border-card: hsl(215, 25%, 28%);
  
  --hover-overlay: rgba(255, 255, 255, 0.04);
  --active-overlay: rgba(255, 255, 255, 0.09);
  
  --shadow-sm: 0px 2px 4px 0px rgba(0, 0, 0, 0.18);
  --shadow-md: 0px 6px 12px 0px rgba(0, 0, 0, 0.22);
}

/* ========================================================================
   RESET & BASE STYLES
   ======================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
}

/* ========================================================================
   LAYOUT
   ======================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.main-content {
  flex: 1;
  padding: 2rem 0;
}

/* ========================================================================
   HEADER
   ======================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.header-gradient {
  background: linear-gradient(to right, #6da5ae, #7eb0b8, #6da5ae);
  position: relative;
}

.dark .header-gradient {
  background: linear-gradient(to right, #5a8a92, #6b9ca4, #5a8a92);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

@media (max-width: 767px) {
  .header-container {
    padding: 1rem;
  }
}

.header-content-desktop {
  display: none;
}

@media (min-width: 768px) {
  .header-content-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.header-content-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .header-content-mobile {
    display: none;
  }
}

.header-logo {
  flex-shrink: 0;
}

.header-logo img {
  height: 8rem;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .header-logo img {
    height: 5rem;
  }
}

.header-contact {
  flex-shrink: 0;
  text-align: right;
  color: white;
  font-size: 0.75rem;
  line-height: 1.4;
}

.header-contact-line {
  margin-bottom: 0.125rem;
}

.header-contact-bold {
  font-weight: 700;
}

.header-contact-medium {
  font-weight: 500;
}

.header-contact-orange {
  color: #e9c168;
  font-weight: 500;
}

.header-divider {
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0.5rem;
}

.header-border {
  height: 0.25rem;
  background: linear-gradient(to right, #e9c168, #f5d589, #e9c168);
}

.theme-toggle {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 30;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.theme-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(233, 193, 104, 0.6);
  background-color: var(--color-teal);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-logo img {
  height: 5rem;
  width: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-links {
    align-items: flex-end;
  }
}

.footer-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.footer-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================================================
   GRID LAYOUT (Before/After)
   ======================================================================== */

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.column-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.column-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 0.125rem;
}

.column-subtitle {
  font-size: 0.875rem;
  color: var(--color-orange);
  font-weight: 500;
  margin-top: 0.125rem;
}

.column-divider {
  height: 2px;
  width: 100%;
  background-color: rgba(233, 193, 104, 0.5);
}

.upload-boxes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ========================================================================
   IMAGE UPLOAD BOX
   ======================================================================== */

.upload-box {
  width: 100%;
}

.upload-area {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  background-color: rgba(0, 0, 0, 0.02);
}

.upload-area.has-image {
  border-color: var(--border-card);
  background-color: var(--bg-card);
}

.upload-area.is-dragging {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

.upload-area.clickable {
  cursor: pointer;
}

.upload-area.clickable:hover {
  background-color: var(--hover-overlay);
}

.upload-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.upload-icon {
  width: 3rem;
  height: 3rem;
  color: var(--color-orange);
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.upload-text-small {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.upload-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: white;
}

.dark .upload-preview {
  background-color: #1f2937;
}

.upload-remove {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.upload-loading {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.dark .upload-loading {
  background-color: rgba(0, 0, 0, 0.9);
}

.upload-spinner {
  width: 3rem;
  height: 3rem;
  border: 2px solid transparent;
  border-top-color: var(--color-teal);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.description-input {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all 0.2s;
}

.description-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(100, 163, 173, 0.1);
}

.description-input::placeholder {
  color: var(--text-muted);
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-teal);
  color: white;
}

.btn-primary:hover {
  background-color: #5a92a0;
}

.btn-primary:active {
  background-color: #4f7f8b;
}

.btn-primary:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  background-color: #64a3ad !important;
}

.btn-destructive {
  background-color: #ef4444;
  color: white;
}

.btn-destructive:hover {
  background-color: #dc2626;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 9999px;
}

.btn-icon svg {
  width: 1rem;
  height: 1rem;
}

/* ========================================================================
   LOGIN DIALOG (Animated Gradient)
   ======================================================================== */

.login-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.login-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #64a3ad 0%, #7ab5bf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ANALOGO Watermark - EXTRA LARGE & Professional */
.login-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/ANALOGO.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  width: 85%;
  height: 85%;
  margin: auto;
  filter: contrast(1.3) brightness(1.2);
  animation: logoBreath 8s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% {
    transform: scale(1);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.15;
  }
}

/* Subtle gradient overlay for depth */
.login-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 0%, rgba(100, 163, 173, 0.15) 100%);
  pointer-events: none;
}

.login-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.08;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
  filter: blur(60px);
}

.shape-1 {
  width: 600px;
  height: 600px;
  top: -30%;
  left: -20%;
  animation: drift 25s ease-in-out infinite;
}

.shape-2 {
  width: 500px;
  height: 500px;
  bottom: -25%;
  right: -15%;
  animation: drift 22s ease-in-out infinite reverse;
}

.shape-3 {
  width: 400px;
  height: 400px;
  top: 50%;
  left: 50%;
  animation: pulse 15s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.35;
  }
}

/* Realistic Ocean Wave Animation */
.login-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

/* Ocean Wave Layer 1 - Deep Water */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,40 Q150,25 300,40 T600,40 T900,40 T1200,40 L1200,120 L0,120 Z" fill="%2364a3ad" opacity="0.25"/></svg>');
  background-size: 50% 100%;
  animation: oceanWave 16s ease-in-out infinite;
  filter: blur(2px);
}

/* Ocean Wave Layer 2 - Mid Water with Foam */
.wave:nth-child(2) {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 Q100,45 200,60 Q300,75 400,60 Q500,45 600,60 Q700,75 800,60 Q900,45 1000,60 Q1100,75 1200,60 L1200,120 L0,120 Z" fill="%23ffffff" opacity="0.18"/></svg>');
  background-size: 50% 100%;
  animation: oceanWave 20s ease-in-out infinite reverse;
  filter: blur(1px);
}

/* Ocean Wave Layer 3 - Surface Foam & Sparkles */
.wave:nth-child(3) {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,80 Q60,70 120,80 Q180,90 240,80 Q300,70 360,80 Q420,90 480,80 Q540,70 600,80 Q660,90 720,80 Q780,70 840,80 Q900,90 960,80 Q1020,70 1080,80 Q1140,90 1200,80 L1200,120 L0,120 Z" fill="%23e9c168" opacity="0.12"/></svg>');
  background-size: 50% 100%;
  animation: oceanWave 14s ease-in-out infinite;
}

/* Ocean Bubbles / Particles */
.wave:nth-child(4) {
  width: 100%;
  height: 100%;
  background: transparent;
  animation: none;
}

@keyframes oceanWave {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-12.5%) translateY(-8px);
  }
  50% {
    transform: translateX(-25%) translateY(0);
  }
  75% {
    transform: translateX(-37.5%) translateY(-5px);
  }
}

/* Ocean Shimmer Effect */
.ocean-shimmer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 100%
  );
  animation: shimmerMove 8s linear infinite;
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: overlay;
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Underwater Bubbles */
.ocean-bubbles {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -20px;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
  border-radius: 50%;
  animation: bubbleRise 6s ease-in infinite;
}

.bubble:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.bubble:nth-child(2) { left: 25%; animation-delay: 1.2s; animation-duration: 8s; width: 6px; height: 6px; }
.bubble:nth-child(3) { left: 40%; animation-delay: 2.5s; animation-duration: 6.5s; }
.bubble:nth-child(4) { left: 55%; animation-delay: 1.8s; animation-duration: 7.5s; width: 10px; height: 10px; }
.bubble:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 9s; width: 5px; height: 5px; }
.bubble:nth-child(6) { left: 85%; animation-delay: 0.5s; animation-duration: 8.5s; width: 7px; height: 7px; }
.bubble:nth-child(7) { left: 15%; animation-delay: 4s; animation-duration: 7s; }
.bubble:nth-child(8) { left: 60%; animation-delay: 2s; animation-duration: 6s; width: 9px; height: 9px; }

@keyframes bubbleRise {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0) scale(1);
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateX(15px) scale(1.1);
  }
  100% {
    bottom: 180px;
    opacity: 0;
    transform: translateX(-10px) scale(0.8);
  }
}

/* Corner Decorations */
.corner-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  opacity: 1;
  animation: fadeInCorner 1s ease-out 0.6s both;
}

@keyframes fadeInCorner {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.top-left-corner {
  top: 2rem;
  left: 2rem;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(100, 163, 173, 0.3) 0%, transparent 70%);
  border-radius: 8px;
  transform: rotate(-15deg);
}

.top-right-corner {
  top: 1.5rem;
  right: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: right;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bottom-left-tagline {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: slideUpFade 1s ease-out 0.8s both;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bottom-right-corner {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #ffffff;
  text-align: right;
  animation: slideUpFade 1s ease-out 1s both;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-dialog {
  position: relative;
  background: rgba(255, 255, 255, 0.95); /* Light white background - elegant! */
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  z-index: 101;
}

/* Mobile optimization for login */
@media (max-width: 640px) {
  .login-dialog {
    padding: 1.25rem;
    width: 94%;
    max-width: 360px;
  }
  
  .login-title {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .login-description {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }
  
  .login-logo {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  
  .login-logo img {
    height: 3rem !important;
  }
  
  .top-right-corner {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
  }
  
  .top-left-corner {
    display: none !important;
  }
  
  /* Bottom text - stack vertically on mobile */
  .bottom-left-tagline {
    bottom: 3.5rem !important;
    left: 0.75rem !important;
    font-size: 0.95rem !important;
    right: auto !important;
  }
  
  .bottom-right-corner {
    bottom: 0.75rem !important;
    right: 0.75rem !important;
    left: auto !important;
    font-size: 0.75rem !important;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .login-dialog {
    padding: 1rem;
    width: 96%;
  }
  
  .top-right-corner {
    font-size: 0.75rem !important;
  }
  
  .bottom-left-tagline {
    font-size: 0.85rem !important;
    bottom: 3rem !important;
  }
  
  .bottom-right-corner {
    font-size: 0.7rem !important;
  }
}

.dark .login-dialog {
  background: rgba(30, 30, 30, 0.95); /* Dark mode */
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.login-logo {
  text-align: center;
  margin-bottom: 1.5rem;
  /* Teal box ONLY for logo - elegant! */
  background: linear-gradient(135deg, #64a3ad 0%, #7ab5bf 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(100, 163, 173, 0.2);
}

.login-logo img {
  height: 4rem;
  margin: 0 auto;
  filter: brightness(1.1); /* Make white logo pop */
}

.login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #64a3ad; /* Teal title on white background */
  margin-bottom: 0.5rem;
}

.login-description {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary); /* Gray text on white background */
  margin-bottom: 1.5rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(100, 163, 173, 0.2); /* Subtle teal border */
  border-radius: var(--radius);
  background-color: var(--bg-card); /* Clean white input */
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.login-input:focus {
  outline: none;
  border-color: #64a3ad; /* Teal border on focus */
  box-shadow: 0 0 0 3px rgba(100, 163, 173, 0.1);
}

.login-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #64a3ad 0%, #7ab5bf 100%); /* Teal gradient */
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(100, 163, 173, 0.3);
}

.login-submit:hover {
  background: linear-gradient(135deg, #7ab5bf 0%, #64a3ad 100%); /* Reverse gradient */
  box-shadow: 0 6px 16px rgba(100, 163, 173, 0.4);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(100, 163, 173, 0.3);
}

.login-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================================================
   TOAST NOTIFICATIONS
   ======================================================================== */

.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================================================
   SHIP NAME DIALOG
   ======================================================================== */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.dialog-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

.dialog-header {
  margin-bottom: 1.5rem;
}

.dialog-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.dialog-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ========================================================================
   UTILITY CLASSES
   ======================================================================== */

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.mt-auto {
  margin-top: auto;
}

/* ========================================================================
   RESPONSIVE UTILITIES
   ======================================================================== */

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}
