/* ======================
   RESET GENERAL
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: url("bg.png") no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  color: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
  padding: 20px;
  position: relative;
}
body:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#f8fafc,#ffffff 60%);
  z-index: -1;
  opacity: 0.95;
}

/* ======================
   CONTAINER
====================== */
.container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 0;
  padding: 48px;
  box-shadow: 0 12px 40px rgba(10,20,30,0.08);
  text-align: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* ======================
   HEADER
====================== */
header h1 {
  font-size: 2.6rem;
  margin-bottom: 8px;
  color: #0f1724;
}
header p {
  font-size: 1rem;
  margin-bottom: 26px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================
   ALERT
====================== */
.alert {
  padding: 12px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: opacity 0.6s ease;
}
.alert.success { background-color: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.alert.error { background-color: #fee2e2; color: #991b1b; border: 1px solid #f87171; }

/* ======================
   CARD GRID
====================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, #ffffff, #fbfdff);
  border-radius: 14px;
  padding: 30px;
  text-decoration: none;
  color: #0b1220;
  box-shadow: 0 6px 18px rgba(13,32,70,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(7, 44, 117, 0.03);
}
.card i { font-size: 2.4rem; color: #0077ff; }
.card span { font-weight: 700; font-size: 1.1rem; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(7, 71, 166, 0.12);
  text-decoration: none;
}

/* ======================
   NEWSLETTER (SUB BUTOANE)
====================== */
.newsletter-section {
  margin-top: 10px;
  background: linear-gradient(135deg, #0077ff, #00b7ff);
  color: #fff;
  border-radius: 20px;
  padding: 40px 28px;
  box-shadow: 0 8px 30px rgba(0, 119, 255, 0.3);
  text-align: center;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.newsletter-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.newsletter-header i {
  font-size: 2.8rem;
  background: white;
  color: #0077ff;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.newsletter-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.newsletter-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  outline: none;
  width: 280px;
  font-size: 1rem;
  color: #333;
}

.newsletter-form button {
  background: white;
  color: #0077ff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.newsletter-form button:hover {
  transform: translateY(-3px);
  background: #f3f8ff;
}

/* ======================
   LOGIN BOX
====================== */
.login-box {
  margin: 30px auto;
  padding: 20px;
  text-align: center;
}
.login-box p { font-size: 1.05rem; color: #334155; margin-bottom: 15px; }
.fancy-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #0077ff, #00c3ff);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.fancy-login:hover {
  background: linear-gradient(135deg, #0052a3, #00477a);
  box-shadow: 0 12px 36px rgba(0, 119, 255, 0.45);
  transform: translateY(-3px);
}
.fancy-login i { font-size: 1.2rem; transition: transform 0.3s ease; }
.fancy-login:hover i { transform: translateX(4px); }

/* ======================
   FOOTER
====================== */
footer {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 26px;
  text-align: center;
}

/* ======================
   RECLAMATII FORM
====================== */
.reclamatii-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.reclamatii-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #d0d7e1;
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: 0.2s;
}
.reclamatii-form textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0,123,255,0.3);
}
.reclamatii-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, #0077ff, #00c3ff);
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.reclamatii-form button:hover {
  background: linear-gradient(135deg, #0052a3, #00477a);
  box-shadow: 0 12px 36px rgba(0, 119, 255, 0.45);
  transform: translateY(-2px);
}
.reclamatii-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 900px) {
  .container { padding: 30px; border-radius: 12px; }
  header h1 { font-size: 2.1rem; }
}
@media (max-width: 700px) {
  .container { padding: 24px; }
  header h1 { font-size: 1.9rem; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  header h1 { font-size: 1.8rem; }
  header p { font-size: 0.9rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card { width:100%; padding:28px; }
  .card i { font-size:2.5rem; }
  .reclamatii-form textarea { min-height: 120px; font-size: 0.95rem; }
  .reclamatii-form button { width:100%; font-size:1.05rem; padding:14px; }
  .newsletter-section { padding: 28px 18px; }
  .newsletter-header i { font-size: 2.2rem; padding: 10px; }
  .newsletter-header h2 { font-size: 1.4rem; }
  .newsletter-form input { width: 100%; max-width: 320px; }
  .newsletter-form button { width: 100%; justify-content: center; }
}
