* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
}

/* Page layout */
.page-container {
  width: 100%;
  background: #333;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.page-container::before{

    content:"";
    width: 100%;
    height: 100%;
    background-color: #000;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;

}

.register-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}


.form-wrapper .alert-message {
    background: #f8d7da;
    color: #e53847;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

/* Titles */
.title-container {
  text-align: center;
}

.form-wrapper .form-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.form-wrapper .form-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* Form */
.form-wrapper .login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-wrapper .input-wrapper {
  display: flex;
  align-items: center;
  box-shadow: 0px 0px 0px 1px #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.form-wrapper .input-prefix {
  background: #eee;
  padding: 0.5rem 0.75rem;
  border-right: 1px solid #ccc;
}

.form-wrapper input[type="text"],
.form-wrapper input[type="password"] {
  border: none;
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}
input[type="password"]{
  box-shadow: 0px 0px 0px 1px #ccc;
  border-radius: 6px;
}

.input-wrapper input:focus {
  outline: none;
}

/* Invalid feedback */
.form-wrapper .message {
  font-size: 0.8rem;
  color: #d9534f;
  margin-top: 0.25rem;
  display: none; /* shown via JS if needed */
}

/* Button */
.form-group>.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background: #ffc107;
  border: none;
  border-radius: 6px;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.form-group>.btn-primary:hover {
  background: #ffc107ba;
  color:white;
  transition: all .2s ease-in-out;
}


.form-wrapper h1, h2, h3, .form-title {
  font-family: 'Poppins', sans-serif;
}

.form-wrapper button, .form-wrapper .btn-primary {
  font-family: 'Nunito', sans-serif;
}

.form-wrapper .password-container {
  position: relative;
  display: flex;
  align-items: center;
}


.form-wrapper .password-container input {
  box-shadow: 0px 0px 0px 1px #ccc;
  border-radius: 6px;
  padding-right: 40px;
  outline: none;
}


#editor {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 200px;
}

.block {
    border: 1px dashed #aaa;
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.toolbar {
    margin-bottom: 15px;
}

button {
    margin-right: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.block img,
.block video,
.block iframe {
    max-width: 100%;
    margin: 5px 0;
    display: block;
}

/* Floating toolbar for paragraph */
.para-toolbar {
    display: none;
    position: absolute;
    top: -40px;
    left: 5px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    padding: 3px;
    border-radius: 4px;
    z-index: 10;
    white-space: nowrap;
}

.para-toolbar button {
    font-size: 14px;
    padding: 2px 6px;
    margin: 0 2px;
}

.para-toolbar input[type="color"] {
    width: 25px;
    height: 25px;
    border: none;
    padding: 0;
    margin-left: 5px;
    cursor: pointer;
}

.block:focus-within .para-toolbar {
    display: block;
}


.editable-paragraph {
    border-style: dashed;
    width: 100%;
}

.editable-paragraph:focus {
    outline: none;
    /* Remove default focus outline */
}

.editor-btn {
    align-items: center;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.editor-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(100, 100, 100, 0.3);
}
