/* Login Page Styles - Matching Main Application Aesthetic */

body {
    font-family: 'Libre Baskerville', serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(
        135deg,
        #3f3f3f 0%,
        #666666 30%,
        #888 70%,
        #aaaaaa 100%
    );
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Logo Gather - Same as main page */
.gather-logo-link {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    display: block;
    transition: transform 0.2s;
}

.gather-logo-link:hover {
    transform: scale(1.05);
}

.gather-logo {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)) brightness(2.5) contrast(1.8);
}

/* Main login wrapper */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 440px;
    margin: 20px;
}

/* App title above the card */
.app-title {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Login card - matching main card style */
.login-container {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
}

/* Form sections */
h2 {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Libre Baskerville', serif;
}

.form-group {
    margin-bottom: 20px;
}

/* Labels matching main page style */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
    font-family: 'Libre Baskerville', serif;
}

/* Input fields matching main page style */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Libre Baskerville', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: white;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Buttons matching main page style */
button {
  background-color: transparent;
  color: #5BA4FC;
  border: 2px solid #5BA4FC;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Libre Baskerville", serif;
  box-shadow: none;
  text-transform: none;
  text-align: center;
  line-height: 1.2;
  outline: none;
  transform: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

button:hover {
  color: #fff;
  background-color: #5897EE;
  border-color: #5897EE;
  box-shadow: none;
  transform: none;
}

button:active {
    transform: translateY(0);
}

/* Message styles */
.error {
    background: #fff5f5;
    color: #dc3545;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    font-family: 'Libre Baskerville', serif;
}

.success {
    background: #f0fff4;
    color: #28a745;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
    font-family: 'Libre Baskerville', serif;
}

/* Toggle links */
.toggle-link {
    text-align: center;
    margin-top: 20px;
}

.toggle-link a {
    color: #5BA4FC;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Libre Baskerville', serif;
}

.toggle-link a:hover {
    color: #5897EE;
    text-decoration: underline;
}

/* Credits info box */
.credits-info {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #b3d9ff;
    color: #0066cc;
    font-family: 'Libre Baskerville', serif;
}

.credits-info::before {
    content: "🎉 ";
    font-size: 16px;
}

/* Form transitions */
#register-form {
    display: none;
}

.form-transition {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .login-wrapper {
        margin: 10px;
    }
    
    .app-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
}
