@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
textarea {
  font-family: "Poppins", sans-serif;
}

.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  background-color: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.localkey-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; 
    padding: 2rem; 
    background-color: #ffffff; 
    border: 1px solid #e5e7eb; 
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    width: 50%;
    margin: 2rem auto; 
}

.input-passphrase {
    width: 80%;
    padding: 0.75rem; 
    border: 1px solid #d1d5db;
    border-radius: 0.375rem; 
    outline: none; 
    font-size: 1rem; 
}

.input-passphrase:focus {
    border-color: #3b82f6; 
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); 
}

.btn-primary, .btn-secondary {
    width: 80%; 
    padding: 0.75rem 1rem; 
    text-align: center; 
    font-weight: 500; 
    border-radius: 0.375rem;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff; 
}

.btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #6b7280;
    color: #ffffff; 
}

.btn-secondary:hover {
    background-color: #4b5563;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s, color 0.3s;
    padding: 0.5rem;
    border-radius: 4px;
}

.help-text.new {
    background-color: #e0f7fa;
    color: #007bff;
}

.help-text.old {
    background-color: #f1f1f1;
    color: #999;
}

.form {
  width: 100%;
  max-width: 820px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-form {
  background-color: #1abc9c;
  position: relative;
}


.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: #1abc9c;
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}

form {
  padding: 1rem;
  z-index: 10;
  overflow: hidden;
  position: relative;
}

.title {
  color: #fff;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.7rem;
}

.input-container {
  position: relative;
  margin: 1rem 0;
}

form {
	max-width: 600px;
	width: 100%;
	padding: 2rem;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
  }
  


  .input-container input[type="file"] {
	padding: 10px;
	font-size: 16px;
	color: #1abc9c;
	background-color: #ffffff;
	border: 2px solid #1abc9c;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
  }

  .input-container input[type="file"]:hover {
    background-color: #0056b3;
  }

  .input-container input[type="file"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
  }

  .input-container ol {
    list-style-type: decimal;
    padding-left: 20px;
  }

  .input-container li {
    font-size: 14px;
    color: #333;
    padding: 5px 0;
  }

.input {
  width: 100%;
  outline: none;
  border: 2px solid #fafafa;
  background: none;
  padding: 0.6rem 1.2rem;
  color: #000;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 5px;
  transition: 0.3s;
  font-size: 16px;

}

textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 5px;
  resize: none;
  overflow-y: auto;
}



.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  font-size: 0.95rem;
  color: #1abc9c;
  line-height: 1;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}

#identity_select{
	margin-bottom: 10px;
	width: 200px;
    padding: 10px;
    font-size: 16px;
    color: #333;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
    cursor: pointer;
}
.btn:hover {
  background-color: transparent;
  color: #fff;
}

.input-container span {
  position: absolute;
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  padding: 0 0.4rem;
  color: transparent;
  pointer-events: none;
  z-index: 500;
}

.input-container span:before,
.input-container span:after {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: #1abc9c;
  top: 50%;
  transform: translateY(-50%);
}

.input-container span:before {
  left: 50%;
}

.input-container span:after {
  right: 50%;
}




.input-container.focus span:before,
.input-container.focus span:after {
  width: 50%;
  opacity: 1;
}

#helpdiv {
  padding: 2.3rem 2.2rem;
  position: relative;
}

#helpdiv .title {
  color: #1abc9c;
}

.text {
  color: #333;
  margin: 1.5rem 0 2rem 0;
}

.icon {
  width: 28px;
  margin-right: 0.7rem;
}




.square {
  position: absolute;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}

.details{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.identify{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#reset {
    display: flex;
	align-items: center;
    gap: 10px;
	justify-content: center;
	margin-top: 5px;
	margin-bottom:5px ;
  }

  #reset button {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #reset button:hover {
    background-color: #0056b3;
  }

  #reset button:active {
    background-color: #004085;
  }

  #reset button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
  }
  
  p,
span,dd {
  word-wrap: break-word;
  word-break: break-all;
  max-width: 100%;
}
#dev {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#dev hr {
  margin-bottom: 1rem;
}

#dev h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#dev dl {
  display: flex;
  flex-wrap: wrap;
}

#dev dt {
  width: 100%;
  font-weight: bold;
  margin-top: 1rem;
}

#dev dd {
  width: 100%;
  margin-left: 0;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

@media (max-width: 850px) {
  .form {
    grid-template-columns: 1fr;
  }


  .square {
    transform: translate(140%, 43%);
    height: 350px;
  }


  .text {
    margin: 1rem 0 1.5rem 0;
  }

  
  .localkey-container {
	width: 80%; 
	padding: 1.5rem;
}

.input-passphrase, .btn-primary, .btn-secondary {
	width: 100%; 
	font-size: 1rem; 
}
}

@media (max-width: 480px) {
  .container {
    padding: 0.2rem;
  }


  .square{
    display: none;
  }

  
  form, #helpdiv {
    padding: 0.5rem;
  }

  .text,
  .information{
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.15rem;
  }

  .input {
    padding: 0.45rem 1.2rem;
  }

  .btn {
    padding: 0.45rem 1.2rem;
  }
  .localkey-container {
	width: 95%; 
	padding: 1rem; 
}

.input-passphrase, .btn-primary, .btn-secondary {
	width: 100%;
	font-size: 0.9rem;
	padding: 0.65rem; 
}

.btn-primary, .btn-secondary {
	font-size: 1rem; 
	padding: 0.75rem 1rem;
}
}