*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#f3f5f7;
}

.loading-screen{
    width:100vw;
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.loading-spinner{
    width:60px;
    height:60px;
    border:6px solid #ddd;
    border-top:6px solid #0d6efd;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin-bottom:20px;
}

@keyframes spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

.login-page{

    width:100vw;
    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

}

.login-box{

    width:420px;

    background:white;

    border-radius:15px;

    padding:35px;

    box-shadow:0 10px 35px rgba(0,0,0,.12);

}

.login-box h1{

    text-align:center;

    margin-bottom:25px;

}

.input-group{

    margin-bottom:18px;

}

.input-group label{

    display:block;

    margin-bottom:8px;

    font-weight:bold;

}

.input-group input{

    width:100%;

    height:45px;

    border:1px solid #ddd;

    border-radius:8px;

    padding:10px;

    font-size:15px;

}

.login-btn{

    width:100%;

    height:48px;

    border:none;

    border-radius:8px;

    background:#0d6efd;

    color:white;

    font-size:16px;

    cursor:pointer;

}

.login-btn:hover{

    background:#0b5ed7;

}
.message {
  min-height: 22px;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}

.message.error {
  color: #dc2626;
}

.form-note {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

.dashboard-page {
  min-height: 100vh;
  padding: 24px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: white;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-header h2 {
  margin-bottom: 6px;
}

.dashboard-header p {
  color: #666;
}

.logout-btn {
  border: none;
  border-radius: 8px;
  background: #dc2626;
  color: white;
  padding: 12px 18px;
  font-weight: bold;
  cursor: pointer;
}

.dashboard-content {
  margin-top: 22px;
}

.welcome-card {
  background: white;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.welcome-card h3 {
  margin-bottom: 10px;
}

@media (max-width: 600px) {
  .login-box {
    width: calc(100% - 32px);
    padding: 26px 20px;
  }

  .dashboard-page {
    padding: 14px;
  }

  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .logout-btn {
    width: 100%;
  }
}
