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

:root {
--pbg: #ffffff;
--sbg: #f8f9fa;
--tbg: #f1f3f4;

--pcolor: #202124;
--scolor: #5f6368;

--br: #d0d0d0;
--br2: #c0c0c0;
--br3: #b0b0b0;
    
--bs: rgba(0, 0, 0, 0.3);
}

.dark-theme {
--pbg: #0f0f0f;
--sbg: #1a1a1a;
--tbg: #2d2d2d;

--pcolor: #e8eaed;
--scolor: #9aa0a6;

--br: #404040;
--br2: #505050;
--br3: #606060;
    
    --bs: rgba(255, 255, 255, 0.15);
}

body{
  background: var(--pbg);
    color: var(--pcolor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header{
  display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    width: 100%;
    height: 50px;
    padding: 2px;
    align-items: center;
    background: var(--sbg);
    color: var(--pcolor);
    margin-bottom: 24px;
    z-index: 10;
}

header h1{
  font-size: 2.4rem;
  padding: 3px;
}

#Hbtns{
  display: flex;
  width:100%;
}

#Hbtns button{
  flex:1;
  height: 25px;
  font-size: 18px;
  font-weight: 700;
  background: var(--tbg);
  color:var(--pcolor);
  border: 1px solid var(--br2);
}

a{
  text-decoration: none;
  color:var(--pcolor);
}

#Scontent {
  height: 350px;
  width: 260px;
  background: var(--sbg);
  border: 3px solid var(--br2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  gap: 15px;
  align-items: center;
  padding: 15px 10px;
  box-shadow: 0 0 40px 10px var(--bs);  /* Changed this line */
  visibility: hidden;  
}

#SC1 {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--br2);
  width: 80%;
  padding-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

#Scontent button {
  flex: none;
  height: 32px;
  width: 90%;
  border: 1px solid var(--br2);
  background: var(--tbg);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  color: var(--pcolor);
}

#Scontent button:hover {
  filter: brightness(1.1);
}

#Scontent #CButton {
  position: absolute;
  bottom: 12px;
  border: 2px solid var(--br2);
  background: red;
  color: white;
  font-weight: 900;
  width: 94%;
  height: 45px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;  
  justify-content: center;
}


#Scontent #CButton:hover {
  filter: brightness(1.2);
}

main{
  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--br);
    width: 95%;
    height: auto;
    padding: 14px 10px 10px 10px;
    margin: -5px 0 10px 0;
}

input{
  border: 1px solid var(--br2);
  background: var(--pbg);
  color: var(--pcolor);
  font-weight: 800;
  width: 90%;
  height: 40px;
  border-radius: 20px;
  text-indent: 12px;
}

#Sinput{
  border: 2px solid var(--br);
  background: #22c55e;
  width: 45%;
  height: 35px;
  border-radius: 20px;
  color:white;
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  text-indent: 0;
}

form{
  padding: 20px;
  width:90%;
  border: var(--pbr);
  display: flex;
  flex-direction: column;
  gap:13px;
  align-items: center;
  border-radius: 15px;
  background: var(--tbg);
  color: var(--scolor);
  border:1px solid var(--br);
}

form p{
  color:orange;
}

#sec1{
  background: var(--sbg);
    border: 1.5px solid var(--br2);
    padding: 18px 12px 18px 12px;
    height: auto;
  width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

#sec2{
  background: var(--sbg);
    border: 1.5px solid var(--br2);
    padding: 18px 12px 18px 12px;
    height: auto;
  width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}



#profile {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

#profile h2 {
    color: var(--pcolor);
}

#loginBtn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
}

#loginBtn:hover {
    background: #2563eb;
}