/* ==========================================================================
   KOGNIVERA IT SOLUTIONS INC. - MINIMAL CORPORATE LOGIN DESIGN
   Clean, focused, standard corporate authentication layout
   ========================================================================== */

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  --color-primary: #1e40af;       /* Corporate Blue */
  --color-primary-hover: #1d4ed8;
  
  --bg-page: #f8fafc;             /* Slate 50 */
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  
  --border-card: #e2e8f0;
  --border-input: #cbd5e1;
  --border-focus: #2563eb;
  
  --text-main: #0f172a;           /* Slate 900 */
  --text-muted: #64748b;          /* Slate 500 */
  --text-secondary: #334155;      /* Slate 700 */
  
  --color-error: #dc2626;
  --color-error-bg: #fef2f2;
  --color-error-border: #fecaca;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  
  --shadow-card: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.03);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

html, body {
  min-height: 100%;
  width: 100%;
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Page Layout */
.login-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

/* Centered Corporate Card */
.login-box {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2.25rem;
}

/* Header & Logo */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.login-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Alert Notification */
.corporate-alert {
  display: none;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
  gap: 0.5rem;
}

.corporate-alert.show {
  display: flex;
}

.alert-error {
  background-color: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  color: var(--color-error);
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.forgot-password-link {
  font-size: 0.82rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.forgot-password-link:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

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

.form-input {
  width: 100%;
  height: 44px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  font-family: var(--font-family);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-focus);
}

.password-toggle-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

/* Submit Action Button */
.submit-btn {
  width: 100%;
  height: 44px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.submit-btn:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

/* Page Footer */
.login-footer {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
