* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
    --bg:#010917;
    --txt:#FCFFFF;
    --card:#16212C;
    --primary: #BBFB3C;
--line:#323B46;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(45deg, var(--bg) 0%, var(--card) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 600px;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 14px;
  margin: 0 auto 15px;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.company-name {
  font-size: 28px;
  color: var(--txt);
  margin-bottom: 5px;
  font-family: 'Algance', sans-serif;
}

.subtitle {
  color: var(--txt);
  opacity: 0.8;
  font-size: 14px;
}

.name-input {
  text-align: center;
  position: relative;
}

.name-input input {
  padding: 16px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--txt);
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.name-input input::placeholder {
  color: rgba(252, 255, 255, 0.6);
  font-weight: 400;
  transition: color 0.3s ease;
}

.name-input input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(187, 251, 60, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.name-input input:focus::placeholder {
  color: rgba(252, 255, 255, 0.4);
}

.signature-board {
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: crosshair;
  margin: 20px 0;
  color: var(--txt);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

button {
  flex: 1;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.clear-btn {
  background: #e74c3c;
  color: white;
}

.clear-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.submit-btn {
  background: var(--primary);
  color: var(--bg);
  font-family: sans-serif;
  font-weight: bold;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.message {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  display: none;
}

.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 20px;
    border-radius: 15px;
  }

  .header {
    margin-bottom: 20px;
  }

  .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

  .company-name {
    font-size: 20px;
    margin-bottom: 3px;
  }

  .subtitle {
    font-size: 12px;
  }

  .name-input {
    margin-bottom: 20px;
  }

  .name-input input {
    font-size: 15px;
    padding: 12px 16px;
    max-width: 280px;
    border-radius: 10px;
  }

  .signature-board {
    width: 100%;
    height: 200px;
    margin: 15px 0;
    border: 2px solid var(--line);
  }

  .buttons {
    gap: 10px;
    flex-direction: column;
  }

  button {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
  }

  .message {
    font-size: 13px;
    padding: 8px;
    margin-top: 10px;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    padding: 15px;
  }

  .container {
    padding: 30px;
    max-width: 100%;
    border-radius: 18px;
  }

  .logo {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }

  .company-name {
    font-size: 24px;
  }

  .subtitle {
    font-size: 13px;
  }

  .signature-board {
    width: 100%;
    height: 250px;
    margin: 18px 0;
  }

  .buttons {
    gap: 12px;
    flex-wrap: wrap;
  }

  button {
    padding: 11px 25px;
    font-size: 15px;
    flex: 1;
    min-width: 140px;
  }
}

/* Small Desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 550px;
    padding: 35px;
  }

  .signature-board {
    width: 100%;
    height: 280px;
  }

  button {
    padding: 12px 28px;
    font-size: 15px;
  }
}

/* Large Desktops (1025px and up) */
@media (min-width: 1025px) {
  .container {
    max-width: 600px;
    padding: 40px;
  }

  .signature-board {
    width: 100%;
    height: 300px;
  }

  button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
  button {
    padding: 14px 32px;
    font-size: 16px;
  }

  button:active {
    transform: translateY(-1px);
  }
}
