:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --success-bg: #d1e7dd;
    --success-border: #badbcc;
    --light-gray: #ecf0f1;
    --medium-gray: #bdc3c7;
    --dark-gray: #7f8c8d;
    --text-color: #34495e;
    --background-color: #f4f6f9;
    --white-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

body {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #8e44ad 100%);
    background-attachment: fixed;
    padding: 60px 15px;
}

.login-card {
    background: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    margin: auto; 
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.join-card {
    max-width: 700px; 
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 24px;
}

.login-card p {
    margin-bottom: 30px;
    color: var(--dark-gray);
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    transition: color 0.3s ease;
    pointer-events: none;
}

input[type="email"], 
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus, 
input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

input:focus + .form-icon {
    color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.message-box {
    padding: 12px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
}

.error-message, .error {
    color: var(--danger-color);
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

.success-message, .success {
    color: #0f5132;
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
}

.forgot-password, .back-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-bottom: 15px;
    margin-top: -10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--dark-gray);
}

.back-link:hover, .forgot-password:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px;
        margin: 15px;
    }
}

.top-right-nav-link {
    position: absolute;
    top: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 10;
}

.top-right-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.join-card {
    max-width: 600px;
}

.info-section {
    text-align: left;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

.info-section p {
    margin-bottom: 15px;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

@media (max-width: 480px) {
    .top-right-nav-link {
        position: relative;
        top: auto;
        right: auto;
        display: inline-block;
        margin-bottom: 20px;
        color: white;
        border-color: white;
        text-align: center;
    }
    
    body {
        flex-direction: column;
        padding: 20px 0;
    }
}

.join-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    max-width: 300px;
}

.gallery-item {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.gallery-item:hover {
    transform: scale(1.05);
    opacity: 1;
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.gallery-left .gallery-item:nth-child(even) { margin-left: 40px; }
.gallery-left .gallery-item:nth-child(odd) { margin-right: 10px; }

.gallery-right .gallery-item:nth-child(even) { margin-right: 40px; }
.gallery-right .gallery-item:nth-child(odd) { margin-left: 10px; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-slow {
    animation: float 6s ease-in-out infinite;
}

.floating-fast {
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

@media (max-width: 1100px) {
    .product-gallery {
        display: none;
    }
    
    .join-wrapper {
        justify-content: center;
    }
}