/* style.css */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --background-gradient: linear-gradient(135deg, #4361ee 0%, #3f37c9 100%);
  --text-dark: #2b2d42;
  --text-light: #edf2f4;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background: #f8f9fa;
  min-height: 100vh;
}

/* 로그인 페이지 스타일 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--background-gradient);
  padding: 2rem;
}

.login-box {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  transform: translateY(-10%);
}

.login-box h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

.login-form .input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.login-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.login-form button {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-form button:hover {
  background: var(--secondary-color);
  transform: translateY(-1px);
}

.error-message {
  color: #e63946;
  background: #ffe3e3;
  padding: 0.8rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 메인 관리 페이지 스타일 */
.header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.logout-btn {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: var(--secondary-color);
}

.container {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.add-btn {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.add-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.member-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.member-card img {
  width: 60%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary-color);
}

.member-info {
  padding: 1.5rem;
}

.member-info h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.member-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.member-info h3 a:hover {
  color: var(--primary-color);
}

.member-info p {
  /*color: #6c757d;*/
  color: #000000;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.member-info small {
  /*color: #adb5bd;*/
  color: #000000;
  font-size: 0.8rem;
}

/* 폼 페이지 스타일 */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.form-container h2 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="file"] {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input[type="file"] {
  padding: 0.5rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.form-container button[type="submit"] {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.form-container button[type="submit"]:hover {
  background: var(--secondary-color);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .login-box {
    padding: 1.5rem;
    margin: 1rem;
  }

  .header {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }

  .member-list {
    grid-template-columns: 1fr;
  }

  .form-container {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .login-box h2 {
    font-size: 1.5rem;
  }

  .add-btn {
    width: 100%;
    justify-content: center;
  }
}
