/**
 * Main Stylesheet (Fully Responsive: Mobile, Tablet, Desktop)
 * File: assets/css/style.css
 * Features: 100% Fluid Full-Width Layout for Desktop
 */

:root {
    --primary-color: #2b7a8c;
    --secondary-color: #17b978;
    --btn-orange: #f38000;
    --bg-light: #f4f6f9;
    --box-border: #dcdcdc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* =========================================================
   Mobile First Design (Default) - Up to 767px
   ========================================================= */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.header-top {
    background-color: var(--primary-color);
    padding: 15px;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

.logo {
    background-color: white;
    display: inline-block;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 24px;
    color: #000;
}

.btn-create-top {
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-create-top:hover {
    background-color: #129c64;
}

.info-banner {
    background-color: #e8e29e;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #d4ce8c;
    border-radius: 5px;
    margin: 15px 0;
    line-height: 1.5;
}

.login-box {
    border: 1px solid var(--box-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
    text-align: center;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--box-border);
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.btn-login {
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #333;
}

.section-box {
    border: 1px dashed #7cb3a1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
}

.bg-light-green { background-color: #e4f5ed; }
.bg-light-blue { background-color: #a9cbd6; border-style: solid; border-color: transparent;}

.section-title {
    font-style: italic;
    font-size: 18px;
    color: #1a5b6d;
    margin-bottom: 10px;
    text-decoration: underline;
}

.btn-orange {
    background-color: var(--btn-orange);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-orange:hover {
    background-color: #d67100;
}

.links a {
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}

.links p {
    margin-bottom: 8px;
}

.stats-area {
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.6;
}

.stats-area .purple { color: purple; }
.stats-area .green { color: green; }
.stats-area .red { color: red; }

.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   Tablet Responsive Design - 768px to 1023px
   ========================================================= */
@media (min-width: 768px) {
    .container {
        padding: 15px;
    }
    .input-group input {
        max-width: 80%; 
        margin: 0 auto;
        display: block;
    }
    .btn-login {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
}

/* =========================================================
   Desktop Responsive Design - 1024px and above (100% Fluid)
   ========================================================= */
@media (min-width: 1024px) {
    .container {
        max-width: 100%; 
        padding: 0; 
        width: 100%;
    }
    
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 2%; /* Edge-to-edge with slight inner spacing */
        border-radius: 0; 
    }
    
    .btn-create-top {
        width: auto;
        margin-top: 0;
        padding: 8px 25px;
        font-size: 15px;
    }
    
    .info-banner {
        margin: 0; 
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 15px;
    }
    
    .login-box {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0; 
        padding: 40px 20px;
    }
    
    .input-group input {
        max-width: 500px; /* Prevents inputs from stretching endlessly */
        padding: 12px;
        font-size: 15px;
        margin: 0 auto;
    }
    
    .btn-login {
        max-width: 500px;
        padding: 12px;
        font-size: 16px;
        margin: 0 auto;
        display: block;
    }
    
    .section-box {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
        padding: 30px 20px;
    }
    
    .stats-area {
        padding: 30px 20px;
        margin-bottom: 0;
    }
    
    .footer {
        padding: 20px;
        border-radius: 0; 
        width: 100%;
    }
}

/* =========================================================
   Registration Page Styles (Responsive & Match Screenshot)
   ========================================================= */

.reg-wrapper {
    border: 1px solid var(--box-border);
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.reg-header {
    background-color: #1f3351;
    color: #ffffff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.reg-info-box {
    background-color: #f0f4f8;
    border-left: 4px solid #1f3351;
    padding: 12px;
    margin: 10px;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reg-form-area {
    padding: 15px;
}

.reg-form-group {
    margin-bottom: 15px;
}

.reg-form-group label {
    display: block;
    font-weight: bold;
    color: #1f3351;
    margin-bottom: 6px;
    font-size: 15px;
}

.reg-input, .reg-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #7a7a7a;
    font-size: 15px;
    outline: none;
    background-color: #ffffff;
}

.reg-input:focus, .reg-select:focus {
    border-color: #1f3351;
}

.birthday-group {
    display: flex;
    gap: 10px;
}

.birthday-group select {
    flex: 1;
}

.captcha-display {
    background-color: #f4f6f9;
    border: 1px solid #7a7a7a;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    user-select: none;
}

.btn-reg {
    background-color: #1f3351;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.btn-reg:hover {
    background-color: #15243b;
}

.reg-footer-link {
    text-align: center;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.reg-footer-link a {
    color: #0056b3;
    text-decoration: none;
    font-size: 16px;
}

.reg-footer-link a:hover {
    text-decoration: underline;
}

/* Tablet & Desktop Layout Adjustments */
@media (min-width: 768px) {
    .reg-wrapper {
        max-width: 600px;
        margin: 30px auto;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    .reg-header {
        border-radius: 5px 5px 0 0;
    }
}