/* Body & main layout */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #131a2d;
    height: 100vh;
    margin: 0;
}

.main_layout {
    display: flex;
    border: 2px solid #6fffe9;
    box-sizing: border-box;
    box-shadow: 0 0 20px #6fffe9;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 94vh;
    margin: 15px;
    padding: 70px;
}

#logo{
    transform: translateX(-50%);
    width: 250px;
    height: auto;
    transform: none;
}
.image-text {
    flex: 1;
    font-size: 100px;
    font-weight: 700;
    font-family: "Cascadia Code", monospace;
    color: #69EBD0;
    text-align: right;
    background: url('txt_img.jpg') no-repeat center/cover; /* optional image fill */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    justify-items: right;
    justify-content: center;
}
.subtext {
    flex: 1;
    font-size: 24px;
    font-weight: 500;
    font-family: "Cascadia Code", monospace;
    color: #69EBD0;
    text-align: right;
    margin-top: -20px;
    margin-left: 270px;
    text-align: center;
}
/* Common form container styles */
.email_container, .login_container, .register_container {
    width: 100%;
    height: 100%;
    padding: 10px;
    position: relative;
    display: flex;
    justify-content: space-between;    
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.container-2 {
  position: relative;
  z-index: 0; /* ensures child content stays above pseudo-elements */
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  align-items: center;
  width: 100%;
  max-width: 600px;
  max-height: max-content;
  height: 100%;
  padding: 10px 50px 40px;
  text-align: center;
  background: rgba(2, 3, 6, 0.545); /* darker semi-transparent base */
  border-radius: 15px;
  overflow: hidden; /* prevents pseudo-elements from spilling out */
}

/* ✨ Outer animated border layer */
.container-2::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 5px; /* border thickness */
  border-radius: 15px;
  background: conic-gradient(
    from var(--angle),
    #ff454500,
    #00fff2,
    #006aff00,
    #ff009500,
    #ff454500
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude; /* keeps center transparent */
  z-index: -2; /* ✨ keeps it behind everything */
  animation: spin 4s linear infinite;
}

/* ✨ Soft glow layer (blurred) */
.container-2::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: conic-gradient(
    from var(--angle),
    #ff454500,
    #00fff2,
    #006aff00,
    #ff009500,
    #ff454500
  );
  filter: blur(20px);
  opacity: 0;
  z-index: -4; /* stays below everything */
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

form.active {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Common neon input style */
#register_username,
#register_password,
#register_email,
#login_password,
#login_email,
#login_username,
#user_email {
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent dark background */
    color: #69EBD0;                       /* neon text color */
    border: 2px solid #69EBD0;            /* neon border */
    border-left: none;                     /* blend with label box */
    font-family: "Cascadia Code", monospace;
    font-weight: 600;
    outline: none;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;           /* smoother rounded right corners */
    transition: all 0.3s ease;
}

/* Glowing focus effect */
#register_username:focus,
#register_password:focus,
#register_email:focus,
#login_password:focus,
#login_email:focus,
#login_username:focus,
#user_email:focus {
    box-shadow: 0 0 12px #69EBD0;
    border-color: #69EBD0;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Matching label style for left side */
.input-group-text {
    background-color: rgba(0, 0, 0, 0.4);
    color: #69EBD0;
    border: 2px solid #69EBD0;
    border-right: none;
    font-family: "Cascadia Code", monospace;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px 0 0 8px;
}

/* Common neon buttons */
.custom_button, form button {
    width: 45%;
    padding: 10px;
    margin-top: 10px;
    border: 3px solid #69EBD0;
    background-color: rgba(0, 0, 0, 0.251);
    color: #69EBD0;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Cascadia Code', monospace;
    font-weight: 700;
    transition: 0.3s ease;
    border-radius: 10px;
}

.custom_button:hover,
form button:hover {
    background-color: #69EBD0;
    color: #000;
}

#magic-link-button {
    font-size: 18px;
    color: #6fffe9; 
    text-decoration: none;
    font-family: 'Cascadia Code', monospace;
    font-weight: 600;  
}
/* Common heading style */
.email_container h1,
.login_container h1,
.register_container h1 {
    margin: 50px;
    font-family: "Cascadia Code", monospace;
    font-weight: 700;
    font-size: 42px;
    color: #69EBD0;
    text-align: center;
}

.readonly-email {
    background-color: rgba(0, 0, 0, 0.4);
    color: #69EBD0;
    border: 2px solid #69EBD0;
    border-left: none;
    font-family: "Cascadia Code", monospace;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
    /* remove display:block, input already stretches */
}



