@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazir', 'Roboto', Tahoma, Arial, sans-serif;
  background: #f8f9fa;
  color: #052F5F;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  direction: rtl;
  line-height: 1.6;
}

.container {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(5, 47, 95, 0.15);
  overflow: hidden;
  padding: 32px 24px;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 16px;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: none;
  font: inherit;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn.active {
  color: #33C75A;
  font-weight: 500;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 100%;
  height: 3px;
  background: #33C75A;
  border-radius: 3px 3px 0 0;
}

/* Form */
.form h2 {
  text-align: center;
  margin-bottom: 12px;
  color: #052F5F;
  font-size: 22px;
  font-weight: 500;
}

.form p {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Input Group */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #052F5F;
  font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Vazir', 'Roboto', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: #33C75A;
  box-shadow: 0 0 0 3px rgba(51, 199, 90, 0.2);
}

/* Button */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-family: 'Vazir', 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn.primary {
  background: #33C75A;
  color: white;
}

.btn.primary:hover {
  background: #2aa048;
  transform: translateY(-1px);
}

.btn.secondary {
  background: #0F4CC0;
  color: white;
}

.btn.secondary:hover {
  background: #0d3da8;
}

.btn.logout {
  background: #d9534f;
  color: white;
}

.btn.logout:hover {
  background: #c9302c;
}

/* Link */
.forgot-link {
  display: block;
  text-align: left;
  margin: 10px 0 16px;
  color: #0F4CC0;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-link:hover {
  color: #0d3da8;
  text-decoration: underline;
}

/* Dashboard */
.dashboard {
  text-align: center;
  padding: 30px 20px;
}

.welcome {
  font-size: 22px;
  color: #052F5F;
  margin-bottom: 8px;
  font-weight: 500;
}

.dashboard p {
  color: #666;
  margin-bottom: 24px;
}

.btn-group {
  margin-top: 28px;
}

.btn-group .btn {
  margin: 0 8px;
  min-width: 120px;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    margin: 16px;
    padding: 24px 16px;
  }
  .btn {
    padding: 12px;
  }
}