/* --- PHONE FRAME & WELCOME LAYOUT --- */
.welcome-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.welcome-container {
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.welcome-card {
  background: #ffffff;
  width: 100%;
  height: clamp(660px, 92vh, 900px); 
  aspect-ratio: 9 / 16;
  
  padding: 0;
  border-radius: 44px;
  
  /* Thick, crisp, 3D outer phone bezel */
  border: 12px solid #334155;
  box-shadow: 
    0 50px 100px -20px rgba(3, 105, 161, 0.4), 
    0 20px 40px -10px rgba(0, 0, 0, 0.25),      
    inset 0 0 0 3px #cbd5e1;                    
  
  text-align: center;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 60px 120px -25px rgba(3, 105, 161, 0.45), 
    0 25px 45px -12px rgba(0, 0, 0, 0.3),
    inset 0 0 0 3px #94a3b8;
}

.app-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Header & Brand Styles */
.app-brand {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 60%, #bae6fd 100%);
  width: 100%;
  padding: clamp(32px, 4.8vh, 46px) 24px clamp(24px, 3.8vh, 32px);
  border-bottom: 1px solid #cbd5e1;
  box-sizing: border-box;
}

.app-brand h1 {
  font-size: clamp(1.8rem, 4vh, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0284c7;
  margin: 0;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 6px;
  margin-bottom: 0;
  font-weight: 500;
}

/* Welcome Page Visual Area */
.visual-placeholder {
  width: 100%;
  flex-grow: 1;
  min-height: 180px;
  background: #ffffff; 
  border: none; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  padding: 20px clamp(24px, 5vw, 40px);
  box-sizing: border-box;
}

.logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 clamp(24px, 5vw, 40px) clamp(32px, 5vh, 48px) clamp(24px, 5vw, 40px);
  background: #ffffff;
}

.btn {
  display: block;
  width: 100%;
  padding: clamp(16px, 2.8vh, 20px) 24px;
  border-radius: 18px;
  font-size: clamp(1.15rem, 2.4vh, 1.35rem);
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: #16a34a;
  border: 2px solid #bbf7d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
  background: #f0fdf4;
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.1);
}

/* --- POLISHED LOGIN FORM & CENTERED ICON --- */
.form-container {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 clamp(24px, 5vw, 40px);
  box-sizing: border-box;
}

.login-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

.login-user-icon {
  width: 76px;
  height: 76px;
  padding: 16px;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 50%;
  border: 2px solid #bae6fd;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  text-align: left;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
}

.input-group input {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.btn-back-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 8px 0;
  display: block;
  width: 100%;
  text-align: center;
}

.btn-back-link:hover {
  color: #0284c7;
}