﻿:root {
    --primary-color: #3BB3E4;
    --primary-dark: #2a8fc7;
    --secondary-color: #6c5ce7;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


.message {
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rate-limit-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 1rem;
    margin: 1rem 0;
}


body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.login-panel ul {
    display: flex;
    gap: 0.8rem;
    list-style: none;
}

.login-panel a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.login-panel .login a {
    color: white;
    border: 2px solid white;
}

    .login-panel .login a:hover {
        background: white;
        color: var(--primary-color);
    }

.login-panel .register a {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

    .login-panel .register a:hover {
        background: transparent;
        color: white;
    }

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.reset-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

    .reset-container::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    }

.big-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

    .big-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }

.reset-intro {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.reset-form {
    margin-top: 1.5rem;
}

.form-field {
    margin-bottom: 1.2rem;
    position: relative;
}

    .form-field label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: var(--dark-color);
        font-size: 0.9rem;
    }

    .form-field input {
        width: 100%;
        padding: 0.9rem 1rem 0.9rem 2.8rem;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        font-size: 0.95rem;
        transition: all 0.3s ease;
        background-color: #f8f9fa;
    }

        .form-field input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(59, 179, 228, 0.2);
            outline: none;
            background-color: white;
        }

    .form-field i {
        position: absolute;
        left: 0.7rem;
        top: 69%;
        transform: translateY(-50%);
        color: var(--primary-color);
        font-size: 1.1rem;
    }

.reset-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .reset-btn:hover {
        opacity: 0.9;
    }

.back-to-login {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

    .back-to-login a {
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
    }

        .back-to-login a:hover {
            text-decoration: underline;
        }

.message {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-color), #1a1a1a);
    color: white;
    padding: 2rem 1rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

    .footer-nav ul {
        list-style: none;
        min-width: 120px;
    }

    .footer-nav li {
        margin-bottom: 0.7rem;
    }

    .footer-nav a {
        color: #ccc;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

        .footer-nav a:hover {
            color: white;
        }

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contact-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

    .contact-info a:hover {
        text-decoration: underline;
    }

.copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.85rem;
}

    .copyright a {
        color: var(--primary-color);
        text-decoration: none;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .reset-container {
        padding: 1.5rem;
    }

    .big-title {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-nav {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .reset-container {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }

    .big-title {
        font-size: 1.6rem;
        padding-bottom: 0.8rem;
    }

        .big-title::after {
            width: 50px;
            height: 2px;
        }

    .form-field input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    }

    .form-field i {
        font-size: 1rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}
