@font-face {
    font-family: 'Lato';
    src: url('./font/Lato-Bold.ttf') format('truetype');
    
}

@font-face {
    font-family: 'Cinzel';
    src: url('./font/Cinzel-Regular.ttf') format('truetype');
}


/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', 'system-ui';
}

body, html {
    height: 100%;
    overflow-x: hidden;
}

#alphabetCanvas {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1; /* Send it behind everything */
    background-color: #fdfdfd;
}

/* Main wrapper for content */
.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Removed z-index here to avoid overlap */
}

/* Header styling */
.header {
    position: fixed; /* Fixed at the top */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: rgba(34, 34, 34, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10; /* Ensures it stays on top */
}

/* Logo and text container */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 1rem;
    margin-left: 0.2rem;
    color: #fff;
    font-family: 'Cinzel', 'system-ui';
    align-self: center;
}

/* Main content */
.content {
    flex: 1;
    padding: 2rem;
    padding-top: 8.5rem; /* Offset for fixed header */
    text-align: center;
    z-index: 1; /* Places content above canvas */
    padding-left: clamp(16px, 5%, 60px);
    padding-right: clamp(16px, 5%, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 70vh;
    align-self: center;
    height: auto;
}

/* Footer styling */
.footer {
    background-color: rgba(34, 34, 34, 0.9);
    color: #fff;
    padding: 1rem;
    text-align: center;
    z-index: 1; /* Ensures it appears above canvas */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    font-size: 0.9rem;
    color: #aaa;
}

.footer-links,
.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a,
.footer-social a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.1s ease;
}

.footer-links a:hover,
.footer-social a:hover {
    color: #d6c489;
}

#judul {
    font-family: 'Cinzel';
    padding-bottom: 0.5vh;
}

input[type="text"], input[type="password"]{
    padding: 5px;
    margin-left: 1px;
    margin-right: 1px;
    margin-top: 2rem;
    width: 100%;
    min-height: 35px;
    height:2.5rem;
    border-radius: 5px;
    border-width: 1.5px;
    border-color: #000;
    background: none;
    font-family: sans-serif;
    transition: all 0.2s;
}

input::placeholder {
    color: #000000a5;
}


input:focus::placeholder {
    opacity: 0;
  }

/*botbutton*/
#botButton {
    display: flex;
    width: 100%;
    gap: 3px;
    margin-top: 1rem;
}

button {
    width: 100%;
    border: none;
    padding: 7px;
    background-color: #0b0423;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    transition: transform 0.2s ease;
}

#button2 {
    text-decoration: none;
    width: 100%;
    border: none;
    height: fit-content;
    padding: 7px;
    background-color: #0b0423;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

button:hover {
    cursor: pointer;
    transform: translateY(-2px); /* Slight lift on hover */
}

#bottomText {
    margin-top: 10px;
    font-size: clamp(0.7rem, 2vw + 0.7rem, 1rem);
    a {
        color: #000;
        cursor: pointer;
    }

}
/* Responsive styling */
@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1000px;
        margin: 0 auto;
    }
}

#errorMsg {
    opacity: 0;
    margin: 5px;
    color: red;
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    display: block; /* Hidden by default */
    font-family: sans-serif;
    cursor:default;
    
  }
  
  /* Show error message */
  .login-container.show-error #errorMsg {
    display: block;
  }
  
  /* Media queries for smaller screens */
  @media (max-width: 480px) {
    #errorMsg {
      font-size: 0.8rem;
      top: -1.2rem;
    }
  }
