/* Modern Login Styles - Big Penhores - Clean Version */

:root {
    --primary-green-darker: #138A73;
    --primary-green-dark: #17A589;
    --primary-green: #00D4AA;
    --bg-clean: #f8fafc;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --border-light: #e5e7eb;
    --shadow-green: rgba(19, 138, 115, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-clean);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Animated Shapes - Sutil */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(19, 138, 115, 0.05), rgba(23, 165, 137, 0.03));
    animation: float 8s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 10%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 15%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.6;
    }
}

/* Login Container - Clean Modern */
.login-container {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    margin: 1rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px var(--shadow-green);
    position: relative;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-link {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.75rem;
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.logo-link:hover .logo {
    filter: brightness(1.1);
}

/* Welcome Text */
.welcome-text {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-green-darker), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-input::placeholder {
    color: var(--text-gray);
    font-weight: 400;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green-darker);
    background: linear-gradient(135deg, #f0fdf4, var(--white));
    box-shadow: 0 0 0 3px rgba(19, 138, 115, 0.1);
    transform: translateY(-2px);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-green-darker);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green-darker);
}

.forgot-password {
    color: var(--primary-green-darker);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Login Button */
.login-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-green-darker), var(--primary-green-dark));
    border: none;
    border-radius: 16px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(19, 138, 115, 0.2);
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(19, 138, 115, 0.3);
    background: linear-gradient(135deg, var(--primary-green-dark), var(--primary-green));
}

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

/* Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: var(--text-gray);
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.divider span {
    background: var(--white);
    padding: 0 1rem;
    font-weight: 500;
}

/* Signup Link */
.signup-link {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.signup-link a {
    color: var(--primary-green-darker);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    text-decoration: underline;
    color: var(--primary-green-dark);
}

/* Loading State */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .login-button {
    background: var(--text-gray);
}

/* Error Message */
.error-message {
    background: linear-gradient(135deg, #fef2f2, #fef2f2);
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInError 0.3s ease-out;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.1);
}

.error-message i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.error-message span {
    flex: 1;
    font-weight: 500;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #f0fdf4, #f0fdf4);
    border: 1px solid var(--primary-green);
    color: var(--primary-green-darker);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInError 0.3s ease-out;
    box-shadow: 0 4px 20px var(--shadow-green);
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
    
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 1.5rem 1rem;
    }
    
    .welcome-text h1 {
        font-size: 1.8rem;
    }
}

/* Focus states for accessibility */
.form-input:focus,
.login-button:focus,
.password-toggle:focus {
    outline: 2px solid var(--primary-green-darker);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-container {
        border: 2px solid var(--text-dark);
        background: var(--white);
    }
    
    .form-input {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
} 