/* ---------------------------- */
/* GLOBAL RESET & BODY STYLING  */
/* ---------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    background: url('img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ---------------------------- */
/* NAVBAR                       */
/* ---------------------------- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    flex-wrap: wrap;
}

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

.logo-img {
    height: 35px;
    width: auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px; /* spacing between links */
    margin-left: auto;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-link:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-right {
        margin-left: 0;
        flex-direction: column;
        width: 100%;
    }
    .navbar-right a {
        width: 100%;
        margin: 5px 0;
        text-align: left;
        padding: 8px 0;
    }
}



/* ---------------------------- */
/* PAGE WRAPPER & CENTERING     */
/* ---------------------------- */
.page-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ---------------------------- */
/* LOGIN / RESET / REGISTER BOX  */
/* ---------------------------- */
.login-wrapper,
.reset-wrapper,
.register-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-box,
.reset-box,
.register-box,
.jumbotron {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .jumbotron {
        padding: 15px; /* reduce padding */
    }
}

.logo {
    display: flex;
    justify-content: flex-start;  /* align left */
    align-items: center;          /* vertically center if needed */
    margin-bottom: 20px;          /* optional spacing */
}

.logo-img {
    max-width: 150px;
    height: auto;
}

/* ---------------------------- */
/* FORMS                        */
/* ---------------------------- */
form input.form-control {
    margin-bottom: 15px;
    padding: 12px 10px;
    font-size: 16px;
}

form .btn {
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
}

form .btn-link {
    font-size: 14px;
    text-decoration: none;
}

/* ---------------------------- */
/* FOOTER                       */
/* ---------------------------- */
.footer-container {
    width: 100%;
    margin-top: auto; /* pushes footer to the bottom if page content is short */
}

.footer {
    background-color: #f8f8f8;
    color: #777;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
}

.footer-link {
    color: #4CAF50;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}


/* ---------------------------- */
/* TABLES (for admin pages)     */
/* ---------------------------- */
.table {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}



/* ---------------------------- */
/* MEDIA QUERIES (Responsive)   */
/* ---------------------------- */
@media (max-width: 768px) {
    .login-box,
    .reset-box,
    .register-box {
        padding: 20px;
    }

    form input.form-control {
        font-size: 14px;
    }

    form .btn {
        font-size: 16px;
    }

    .logo-img {
        max-width: 120px;
    }
}



/* Card styling */
.activation-card {
    max-width: 480px;
    width: 100%;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.activation-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Form inputs */
.form-cipher input[type="text"],
#cipher_t {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.form-cipher input[type="text"]:focus,
#cipher_t:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 5px rgba(74,144,226,0.5);
}

/* Activate button */
.activate-btn {
    width: 100%;
    padding: 12px;
    background: #4A90E2;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s, transform 0.2s;
}

.activate-btn:hover {
    background: #357ABD;
    transform: translateY(-2px);
}

/* Copy activation wrapper */
.activation-wrapper {
    display: flex;
    gap: 10px;
}

.copy-btn {
    padding: 12px 15px;
    background: #50C878;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.copy-btn:hover {
    background: #3DA760;
    transform: translateY(-2px);
}

/* Error message */
.error-msg {
    color: #E74C3C;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .activation-card {
        padding: 20px 15px;
    }

    .form-cipher input[type="text"],
    #cipher_t,
    .activate-btn,
    .copy-btn {
        font-size: 14px;
        padding: 10px;
    }

    .activation-wrapper {
        flex-direction: column;
    }
}


.about-section {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;

    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.about-image {
    flex: 1 1 400px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-section {
        padding: 20px;
    }

    .about-content h2 {
        text-align: center;
    }
}

