*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary-color: #7f56da;
  --primary-glow: rgba(127, 86, 218, 0.4);
  --text-color: #ffffff;
  --secondary-text-color: #a0a0a0;
  --font-family-body: "Poppins", sans-serif;
  --font-family-heading: "Poppins", sans-serif;
  --background-color: #05050e;
  --surface-color: rgba(255, 255, 255, 0.03);
  --glass-border: 1px solid rgba(255, 255, 255, 0.06);
  --button-hover: #5a52d5;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body {
  font-family: var(--font-family-body);
  background-color: var(--background-color);
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(127, 86, 218, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(51, 181, 229, 0.1) 0%,
      transparent 40%
    );
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 80px);
  z-index: 1000;
  background: rgba(5, 5, 14, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
}

.header-logo a img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(127, 86, 218, 0.5));
}

main {
  padding-top: clamp(100px, 14vh, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Icons */
.bx {
  font-size: 1.25rem;
  color: var(--secondary-text-color);
  transition: color 0.3s;
}

.inputForm:focus-within .bx {
  color: var(--primary-color);
}

.toggle {
  cursor: pointer;
  color: var(--secondary-text-color);
  font-size: 1.25rem;
}

.toggle:hover {
  color: var(--text-color);
}

.form-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: var(--glass-border);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  max-width: 860px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: fadeInDown 0.6s ease;
  overflow: hidden;
  display: flex;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.apply-content {
  flex: 1;
  padding: 11px;
}

.form-header {
  text-align: left;
  margin-bottom: 20px;
  margin-top: 0;
}

.form-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right-column {
  display: flex;
  flex-direction: column;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 4px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--secondary-text-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 52px 18px 52px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.input-wrapper textarea {
  min-height: 205px;
  resize: none;
  white-space: pre-wrap;
}

.input-wrapper select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(127, 86, 218, 0.1);
}

.input-wrapper input:focus + i,
.input-wrapper textarea:focus + i {
  color: var(--primary-color);
  font-weight: 600;
}

.input-wrapper input[type="file"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-wrapper {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-wrapper::before {
  content: "Upload";
  background: rgba(127, 86, 218, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-wrapper:hover::before {
  background: var(--primary-color);
  color: #fff;
}

.file-wrapper::after {
  content: attr(data-text);
  color: var(--secondary-text-color);
  font-weight: 600;
  pointer-events: none;
}

.file-wrapper.has-file::after {
  color: var(--text-color);
  font-weight: 600;
}

/* Custom Arrow for Select */
.select-wrapper::after {
  content: "\ea4a"; /* boxicons chevron-down unicode */
  font-family: "boxicons" !important;
  position: absolute;
  right: 16px;
  color: var(--secondary-text-color);
  pointer-events: none;
  font-size: 1.4rem;
  line-height: 1;
}

/* Buttons */
.btn-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto 0;
  margin-top: -20px;
  width: 80%;
  max-width: 400px;
  min-height: 56px;
}

.btn-submit:hover {
  background: var(--primary-glow);
}

.btn-submit i {
  font-size: 1.4rem;
  line-height: 1;
}

/* Site Footer */
footer {
  padding: 40px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.06);
  margin-bottom: 25px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--secondary-text-color);
  font-size: 1rem;
  font-weight: 400;
}

.footer-legal-links a {
  color: var(--secondary-text-color);
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
  transition: 0.3s;
}

.footer-legal-links a:hover {
  color: var(--text-color);
}

@media (max-width: 768px) {
  .form-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .file-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-card {
    max-width: 420px;
  }

  .apply-content {
    padding: 35px 25px;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .apply-content {
    padding: 30px 20px;
  }
}
