/* ============================================
   PLANNER MARKETING DIGITAL - BiccaCreative
   Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-orange: #E8720C;
  --primary-orange-hover: #D4660A;
  --primary-orange-light: #FFF3E8;
  --dark-bg: #0A0A0A;
  --light-bg: #FAF9F6;
  --brown-bg: #3E1E00;
  --text-dark: #1A1A1A;
  --text-medium: #6B6B6B;
  --text-light: #9B9B9B;
  --border-color: #E0DDD8;
  --border-focus: #E8720C;
  --white: #FFFFFF;
  --error-red: #DC3545;
  --success-green: #28A745;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--brown-bg);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

input:focus {
  outline: none;
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 32px;
  background-color: var(--brown-bg);
}

.login-card {
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Left Panel - Visual / Branding */
.login-left {
  flex: 1;
  position: relative;
  background: var(--dark-bg);
  display: flex;
  align-items: flex-start;
  padding: 48px 44px;
  overflow: hidden;
}

.login-left h1 {
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  max-width: 400px;
}

/* Image wrapper - clips the white bg */
.login-img-wrapper {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48%;
  aspect-ratio: 1 / 1.5;
  border-radius: 999px;
  overflow: hidden;
  z-index: 1;
}

.login-visual-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.6);
}

/* Right Panel - Form */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px;
  background-color: var(--light-bg);
}

.login-form-wrapper {
  width: 100%;
  max-width: 380px;
}

/* Logo / Brand Icon */
.login-logo {
  margin-bottom: 20px;
}

.login-logo svg {
  width: 44px;
  height: 44px;
}

.login-form-wrapper h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.login-form-wrapper .subtitle {
  font-size: 0.9rem;
  color: var(--text-medium);
  margin-bottom: 28px;
}

.login-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin-bottom: 28px;
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.1);
}

.form-group input.error {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error-red);
  margin-top: 6px;
  display: none;
}

.form-error.visible {
  display: block;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background-color: var(--primary-orange);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

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

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.form-footer a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-footer a:hover {
  color: var(--primary-orange);
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--error-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.toast.success {
  background-color: var(--success-green);
}

.toast.visible {
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .login-container {
    padding: 0;
    background-color: var(--light-bg);
  }

  .login-card {
    flex-direction: column;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .login-left {
    display: none;
  }

  .login-right {
    flex: 1;
    padding: 48px 28px;
    border-radius: 0;
    min-height: 100vh;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .login-right {
    padding: 40px 20px;
  }

  .login-form-wrapper h2 {
    font-size: 1.5rem;
  }
}
