/* Reddy 888 – Page 08 */

.r8-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #646464;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.r8-wrap {
  width: 100%;
  max-width: 450px;
}

.r8-card {
  width: 450px;
  min-height: 440px;
  background: #132225;
  border-radius: 12px;
  padding: 1.25rem 24px 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.r8-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 0.5rem;
}

.r8-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.r8-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
}

.r8-btn-back,
.r8-btn-close {
  flex-shrink: 0;
}

.r8-logo {
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.r8-logo-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.r8-message {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.r8-message--success {
  background: rgba(76, 175, 80, 0.2);
  color: #a5d6a7;
}

.r8-message--error {
  background: rgba(244, 67, 54, 0.2);
  color: #ef9a9a;
}

.r8-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.r8-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.r8-row--login-userid .r8-field--login-with {
  flex: 0 0 auto;
  min-width: 0;
  width: 130px;
}

.r8-row--login-userid .r8-field--userid {
  flex: 1;
  min-width: 0;
}

.r8-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.r8-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  margin: 0;
}

.r8-select-wrap {
  position: relative;
}

.r8-select {
  width: 100%;
  height: 44px;
  padding: 0 2.25rem 0 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.r8-select:focus {
  outline: none;
  border-color: #2dd4bf;
}

.r8-select-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #1a1a1a;
  font-size: 0.7rem;
  pointer-events: none;
}

.r8-input {
  width: 100%;
  height: 44px;
  padding: 0 2.75rem 0 0.85rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.r8-input::placeholder {
  color: #666;
}

.r8-input:focus {
  outline: none;
  border-color: #2dd4bf;
}

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

.r8-input-wrap .r8-input {
  padding-right: 2.75rem;
}

.r8-btn-toggle-pwd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
  border-radius: 4px;
}

.r8-btn-toggle-pwd svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.r8-btn-toggle-pwd svg[hidden] {
  display: none !important;
}

.r8-btn-toggle-pwd:hover {
  color: #1a1a1a;
}

.r8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 402px;
  max-width: 100%;
  height: 40px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, filter 0.2s;
  box-sizing: border-box;
}

.r8-btn:hover {
  opacity: 0.92;
}

.r8-btn:active {
  opacity: 0.88;
}

.r8-btn--login {
  background: #2c4f58;
  color: #fff;
}

.r8-btn--demo {
  background: #2c4f58;
  color: #fff;
}

.r8-btn--apk {
  background: rgb(102 187 106);
  color: #fff;
}

.r8-btn--apk .r8-icon-android {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .r8-page {
    padding: 1rem;
  }

  .r8-card {
    width: 100%;
    min-height: 440px;
    padding: 1rem 1.25rem 1.25rem;
  }
}
