/* Product Sans Font Family */
@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/ProductSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/ProductSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Product Sans';
    src: url('../fonts/ProductSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fafafa; /* Off-white background */
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1 {
    font-family: 'Product Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: 'Product Sans', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.75rem;
}

h3 {
    font-family: 'Product Sans', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background-color: #ffffff; /* White navbar */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.navbar-content {
    display: flex;
    justify-content: flex-start; /* Logo on the left */
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

/* Main Container */
.main-container {
    margin-top: 70px; /* Account for fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
}

/* Form Card */
.form-card {
    background-color: #ffffff; /* White card */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    margin: 0;
}

/* Form Styles */
.password-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Product Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Product Sans', sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

.form-input.success {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Error Messages */
.form-error {
    display: none;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-family: 'Product Sans', sans-serif;
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: #666;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: 'Product Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.submit-btn:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.submit-btn:disabled,
.submit-btn.disabled {
    background-color: #e1e5e9;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Message Container */
.message-container {
    margin-bottom: 1.5rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: 'Product Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-content {
        padding: 0 1rem;
    }
    
    .main-container {
        padding: 1rem 0.5rem;
    }
    
    .form-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.5rem 1rem;
    }
    
    .card-title {
        font-size: 1.375rem;
    }
    
    .navbar-content {
        padding: 0 0.75rem;
    }
}

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

/* Animation */
.form-card {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Password Requirements Styling */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.requirement-item.invalid .requirement-icon {
    background-color: #dc3545;
    color: white;
}

.requirement-item.valid .requirement-icon {
    background-color: #28a745;
    color: white;
}

.requirement-item.invalid .requirement-text {
    color: #dc3545;
}

.requirement-item.valid .requirement-text {
    color: #28a745;
    text-decoration: line-through;
    opacity: 0.7;
}

.requirement-text {
    font-family: 'Product Sans', sans-serif;
    font-weight: 400;
    transition: all 0.2s ease;
}

/* Initial state - show as invalid */
.requirement-item {
    color: #dc3545;
}

.requirement-item .requirement-icon {
    background-color: #dc3545;
    color: white;
}

/* Neutral state for requirements (before user interaction) */
.requirement-item.neutral .requirement-icon {
    background-color: #6c757d;
    color: white;
}

.requirement-item.neutral .requirement-text {
    color: #6c757d;
}

/* Override the initial invalid state */
.requirement-item {
    color: #6c757d;
}

.requirement-item .requirement-icon {
    background-color: #6c757d;
    color: white;
}
