/* Background */
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #5f5f5f; /* match app background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;

}

/* Container */
.login-container {
    width: 100%;
    max-width: 380px;
    padding: 20px;
}

/* Card style */
.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.login-card h1 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #2f2f2f; /* dark grey header */
}

.login-card .subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

input:focus {
    border-color: #d71920; /* red accent */
    outline: none;
    box-shadow: 0 0 5px rgba(215, 25, 32, 0.3);
}

/* Button */
.btn {
    width: 100%;
    padding: 12px;
    background: #d71920; /* app red */
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #b9151b; /* darker red */
}

/* Error message */
.error {
    margin-top: 15px;
    color: #c62828;
    font-size: 14px;
    display: none;
}

/* Switch text */
.switch-text {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.link-btn {
    background: none;
    border: none;
    color: #d71920; /* red accent */
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

.link-btn:hover {
    color: #b9151b;
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ------------------------------
   Topbar
--------------------------------*/
#topbar {
  display: flex;
  align-items: center;
  background: #2f2f2f;
  color: white;
  padding: 10px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
#topbar .left {
  display: flex;
  align-items: center;
  gap: 12px;
}
#topbar .logo {
  height: 32px;
  width: auto;
}
#topbar .brand {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
#topbar .center {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 28px;
}
#topbar .nav-link {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}


#topbar .right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.code-input {
  width: 1.8rem !important;   /* adjust size as needed */
  height: 2.8rem !important;
  font-size: 1.4rem;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  padding: 0px !important
}

.code-input:focus {
  border-color: #d71920;
  outline: none;
  box-shadow: 0 0 5px rgba(215, 25, 32, 0.3);
}

.pb-30 {
  padding-bottom: 30px;
}