/* Main Styles for ProPings Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    list-style: none;
}

.footer-links li {
    margin-right: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.copyright {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Form Styles */
.form-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 35px;
    max-width: 550px;
    margin: 40px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    border-radius: 3px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
    background-color: #fff;
}

.form-group:focus-within label {
    color: #007bff;
}

.password-strength {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.password-strength.weak {
    color: #fff;
    background-color: #dc3545;
}

.password-strength.medium {
    color: #fff;
    background-color: #ffc107;
}

.password-strength.strong {
    color: #fff;
    background-color: #28a745;
}

#password-match-indicator {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    display: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease;
}

/* Password input container and toggle button */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-control {
    padding-right: 40px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
    padding: 0;
    z-index: 5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    border-radius: 50%;
}

/* Referral Code Styles */
.referral-code-container {
    margin: 15px 0;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.referral-code {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.referral-code span {
    flex: 1;
}

.btn-copy {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    color: #0056b3;
    transform: scale(1.1);
}

.copy-message {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #28a745;
    font-weight: 500;
    height: 20px;
    transition: opacity 0.3s ease;
}

.password-toggle:hover {
    color: #007bff;
}

/* Password requirements styling */
.password-requirements {
    margin-top: 15px;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.requirement {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement i {
    margin-right: 8px;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.requirement.met {
    color: #28a745;
}

.requirement.met i {
    color: #28a745;
    transform: scale(1.1);
}

.fa-times-circle {
    color: #dc3545;
}

.fa-check-circle {
    color: #28a745;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-check:hover {
    background-color: #e9ecef;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(90deg, #0062cc, #00a6df);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.35);
}

.btn:active {
    transform: translateY(0);
}

.btn-block {
    display: block;
    width: 100%;
}

.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1rem;
}

.form-footer a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alert {
    padding: 15px 18px;
    border-radius: 6px;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 50px 20px;
    animation: fadeIn 1s ease;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Add animations to form elements */
.form-group {
    animation: fadeIn 0.5s ease 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-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

.requirement {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.requirement:nth-child(1) { animation-delay: 0.1s; }
.requirement:nth-child(2) { animation-delay: 0.2s; }
.requirement:nth-child(3) { animation-delay: 0.3s; }
.requirement:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin: 0 10px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .form-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .mobile-menu-open .nav-links li {
        margin: 10px 0;
    }
}