/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  background: #dbdbdb;
}
.register-container {
  background: #e0e0e0;
  max-width: 500px;
  margin: 40px auto;
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  border: 1px solid #888;
}
.register-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 2em;
  letter-spacing: 0.1em;
}
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 1.1em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 8px;
  border: none;
  border-bottom: 1px solid #555;
  background: transparent;
  font-size: 1em;
  outline: none;
}
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}
.form-actions {
  text-align: center;
  margin-top: 18px;
}
.form-actions input[type="submit"] {
  width: 80%;
  padding: 16px 0;
  font-size: 1.3em;
  border: 1.5px solid #333;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.form-actions input[type="submit"]:hover {
  background: #f5f5f5;
}
.error-message {
  color: #d32f2f;
  font-size: 0.95em;
  margin-top: 2px;
  min-height: 1.2em;
  display: block;
}
.success-message {
  color: #388e3c;
  text-align: center;
  margin-top: 16px;
  font-weight: bold;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0e0e0;
  border-bottom: 1px solid #888;
  padding: 16px 32px;
  margin-bottom: 32px;
  position: relative;
}
.header-title {
  flex: none;
  text-align: center;
  z-index: 1;
}
.header-title-link,
.header-title-link:visited,
.header-title-link:active,
.header-title-link:hover {
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #222;
  text-decoration: none;
}
.header-actions {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.header-btn {
  padding: 6px 16px;
  border: 1px solid #333;
  border-radius: 3px;
  background: #fff;
  text-decoration: none;
  color: #222;
  font-size: 1em;
  font-weight: bold;
  transition: background 0.2s;
}
.header-btn:hover {
  background: #f5f5f5;
}
.login-container {
  background: #e0e0e0;
  max-width: 500px;
  margin: 40px auto;
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  border: 1px solid #888;
}
.login-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 2em;
  letter-spacing: 0.1em;
}
.form-group {
  margin-bottom: 22px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 1.1em;
}
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 8px;
  border: none;
  border-bottom: 1px solid #555;
  background: transparent;
  font-size: 1em;
  outline: none;
}
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.checkbox-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}
.form-actions {
  text-align: center;
  margin-top: 18px;
}
.form-actions input[type="submit"] {
  width: 80%;
  padding: 16px 0;
  font-size: 1.3em;
  border: 1.5px solid #333;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.form-actions input[type="submit"]:hover {
  background: #f5f5f5;
}
.register-link {
  text-align: center;
  margin-top: 18px;
}
.register-link a {
  color: #1976d2;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: color 0.2s;
}
.register-link a:hover {
  text-decoration: underline;
  color: #0d47a1;
}
.forgot-password-link {
  text-align: center;
  margin-top: 10px;
}
.forgot-password-link a {
  color: #1976d2;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: color 0.2s;
}
.forgot-password-link a:hover {
  text-decoration: underline;
  color: #0d47a1;
}
.flash-message {
  text-align: center;
  margin: 20px auto;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1.1em;
  width: 90%;
  max-width: 500px;
}
.flash-message.notice {
  background: #e3fcec;
  color: #256029;
  border: 1px solid #b7ebc6;
}
.flash-message.alert, .flash-message.error {
  background: #ffeaea;
  color: #c00;
  border: 1px solid #f5c2c7;
}

@media (max-width: 600px) {
  .header-actions {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    transform: none;
    right: 0;
    top: 0;
    width: 100%;
    margin-top: 12px;
  }
  .header-btn {
    width: 100%;
    min-width: 120px;
    margin-bottom: 4px;
    box-sizing: border-box;
  }
}

.works-main-container {
  background: #ddd;
  padding: 24px;
  min-height: 600px;
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.works-main-left {
  flex: 2;
  display: flex;
  flex-direction: column;
}
.works-main-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 800px) {
  .works-main-container {
    flex-direction: column;
    gap: 20px;
    padding: 12px;
  }
  .works-main-left, .works-main-right {
    width: 100%;
    max-width: 100%;
  }
  .works-main-right {
    order: 2;
  }
  .works-main-left {
    order: 1;
  }
  #work_body {
    min-height: 180px !important;
    font-size: 1em !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  #youtube-player {
    min-height: 180px;
    height: 180px !important;
    width: 100% !important;
  }
  #youtube-input {
    width: 95% !important;
    font-size: 1em !important;
  }
}
