body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: url('college.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(44, 62, 80, 0.35) 0%, rgba(236, 240, 241, 0.15) 100%);
    backdrop-filter: blur(4px);
    z-index: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.form-box {
    background: rgba(255,255,255,0.22);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 40px 32px 32px 32px;
    width: 350px;
    animation: fadeInUp 0.8s cubic-bezier(.68,-0.55,.27,1.55);
    position: relative;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95);}
    to { opacity: 1; transform: translateY(0) scale(1);}
}

.form-box h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #2d3e50;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    position: relative;
}

.input-field input {
    width: 92%;
    padding: 14px 40px 14px 14px;
    margin: 0 auto;
    display: block;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    font-size: 16px;
    transition: box-shadow 0.3s, border 0.3s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    outline: none;
    box-sizing: border-box;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #888;
    font-size: 15px;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
    padding: 0 4px;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #2980b9;
    background: rgba(255,255,255,0.7);
    border-radius: 4px;
    padding: 0 4px;
}

.input-field input:focus {
    background: #fff;
    box-shadow: 0 0 14px rgba(41, 128, 185, 0.18);
    border: 1.5px solid #27ae60;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #2980b9;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #27ae60 0%, #2980b9 100%);
    color: #fff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(41, 128, 185, 0.13);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(41, 128, 185, 0.22);
    background: linear-gradient(135deg, #2980b9 0%, #27ae60 100%);
}

.submit-btn:active {
    transform: scale(0.98);
}

.back-btn {
  position: absolute;
  top: 32px;
  left: 32px;
  background: linear-gradient(90deg, #2563eb 0%, #16a34a 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 16px #2563eb33;
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 10;
  animation: slideInLeft 0.7s cubic-bezier(.68,-0.55,.27,1.55);
}

.back-btn:hover {
  transform: scale(1.08) translateX(-4px);
  box-shadow: 0 8px 32px #16a34a33;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px);}
  to { opacity: 1; transform: translateX(0);}
}

@media (max-width: 600px) {
    .form-box {
        padding: 20px 8px;
        border-radius: 12px;
        width: 95vw;
    }
    .form-box h2 {
        font-size: 1.3rem;
    }
}