/* Maxificient Inc. - Login Page Stylesheet
   EASY CUSTOMIZATION: Change colors by updating the variables below.
   For text changes, edit login.html instead.
*/

/* ========== BRAND COLORS & VARIABLES ========== */
:root {
  /* ========== BRAND COLORS ========== */
  --primary-purple-start: #6c63ff; /* Main brand color */
  --primary-purple-end: #b569ff; /* Main brand color */
  --action-button-gradient: linear-gradient(90deg, #17b2ff, #6bd1bb);

  /* ========== NEUTRAL COLORS ========== */
  --background-white: #ffffff;
  --background-light: #fafafa;
  --text-dark: #1d1b20;
  --text-gray: #666666;
  --border-color: #e0e0e0;

  /* ========== EFFECTS ========== */
  --shadow-soft: 0 6px 18px rgba(29, 27, 32, 0.08);
  --radius-card: 12px;
  --radius-input: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  background: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 18px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== LOGIN HEADER ========== */
.login-header {
  background: transparent;
  padding: 0 24px;
}

.login-header-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-header-left {
  display: flex;
  align-items: center;
}

.login-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.login-logo-image {
  height: 70px;
  width: auto;
  max-width: 240px;
}

/* ========== LOGIN MAIN CONTENT ========== */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--background-white);
  border-radius: var(--radius-card);
  padding: 36px 32px 32px 32px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin: 0 auto;
}

.login-title {
  font-size: 29px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-dark);
}

/* ========== LOGIN FORM ========== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-input);
  font-size: 17px;
  transition: all 0.3s ease;
  background: var(--background-white);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-purple-start);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.form-input::placeholder {
  color: #999999;
  font-size: 17px;
}

/* ========== LOGIN BUTTON ========== */
.login-submit-button {
  background: var(--action-button-gradient);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius-input);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: var(--shadow-soft);
}

.login-submit-button:hover,
.login-submit-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 178, 255, 0.3);
}

.login-submit-button:active {
  transform: translateY(0);
}

/* ========== LOGIN FOOTER ========== */
.login-footer {
  background: var(--background-light);
  padding: 20px 24px;
  margin-top: auto;
}

.login-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.login-footer-text {
  color: var(--text-dark);
  font-size: 17px;
  margin: 0;
}

/* ========== ACCESSIBILITY ========== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-purple-start);
  outline-offset: 2px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 900px) {
  .login-logo-image {
    height: 58px;
  }

  .login-card {
    padding: 32px 24px;
  }
}

@media (max-width: 700px) {
  .login-header {
    padding: 0 20px;
  }

  .login-logo-image {
    height: 58px;
    max-width: 200px;
  }

  .login-main {
    padding: 20px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .login-title {
    font-size: 26px;
    margin-bottom: 24px;
  }
}

@media (max-width: 400px) {
  .login-header {
    padding: 0 16px;
  }

  .login-logo-image {
    height: 58px;
    max-width: 200px;
  }

  .login-card {
    padding: 20px 16px;
  }

  .login-title {
    font-size: 24px;
  }

  .form-input {
    padding: 10px 14px;
  }

  .login-submit-button {
    padding: 12px 20px;
  }
}

/* ========== ACCESSIBILITY ENHANCEMENTS ========== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }

  .login-submit-button:hover,
  .login-submit-button:focus {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .form-input {
    border-width: 3px;
  }

  .login-submit-button {
    border: 2px solid white;
  }
}

/* ========== ERROR MESSAGE STYLES ========== */
.error-message {
  color: #d93025;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
