/* INstyles.css for NUTaskers Login and Forgot Password Pages */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
}

.logo h1 {
    color: #003366;
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 3rem 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-form-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.login-form-wrapper h2 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-form-wrapper p {
    color: #666;
    margin-bottom: 1.5rem;
}

.message {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    text-align: center;
}

.message:empty {
    display: none;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #003366;
    outline: none;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-password {
    color: #003366;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
    color: #ffcc00;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #003366;
    color: #fff;
}

.btn-primary:hover {
    background-color: #ffcc00;
    color: #003366;
}

.btn-block {
    display: block;
    width: 100%;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.login-footer p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.login-footer a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
    color: #ffcc00;
}

/* Footer Styles */
footer {
    background-color: #003366;
    color: #fff;
    padding: 2rem 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-bottom {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-yellow {
    background-color: #ffcc00;
    color: #003366;
}

.btn-yellow:hover {
    background-color: #ffdb4d;
}

.btn-blue {
    background-color: #003366;
    color: #fff;
}

.btn-blue:hover {
    background-color: #ffcc00;
    color: #003366;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-form-wrapper {
        padding: 1.5rem;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-form-wrapper {
        padding: 1.2rem;
    }
}

/* Forgot Password Styles */
.form-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    margin: 3rem auto;
}

.form-wrapper h2 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-wrapper p {
    color: #666;
    margin-bottom: 1.5rem;
}

.form-wrapper form {
    text-align: left;
}

.form-wrapper label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-wrapper input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem;
}

.form-wrapper input:focus {
    border-color: #003366;
    outline: none;
}

.form-wrapper button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background-color: #003366;
    color: #fff;
    transition: all 0.3s ease;
}

.form-wrapper button:hover {
    background-color: #ffcc00;
    color: #003366;
}

.back-to-home {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #ffcc00;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: #003366;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Message styling for success/error notifications */
.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

/* Success message */
.message:has(✅) {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error message */
.message:has(❌) {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Warning message */
.message:has(⚠️) {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

@media (max-width: 768px) {
    .form-wrapper {
        margin: 2rem auto;
        padding: 1.5rem;
    }
    
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .back-to-home {
        margin-top: 1rem;
    }
}

.login-form-wrapper {
    animation: fadeInContent 0.8s ease-out forwards;
    opacity: 0;
}

.login-form-wrapper h2,
.login-form-wrapper p,
.login-form .form-group,
.login-form .form-options,
.login-form .btn,
.login-footer {
    opacity: 0;
    transform: translateY(15px);
}

.login-form-wrapper h2 {
    animation: fadeInItem 0.5s ease-out 0.2s forwards;
}

.login-form-wrapper p {
    animation: fadeInItem 0.5s ease-out 0.3s forwards;
}

.login-form .form-group:nth-child(1) {
    animation: fadeInItem 0.5s ease-out 0.4s forwards;
}

.login-form .form-group:nth-child(2) {
    animation: fadeInItem 0.5s ease-out 0.5s forwards;
}

.login-form .form-options {
    animation: fadeInItem 0.5s ease-out 0.6s forwards;
}

.login-form .btn {
    animation: fadeInItem 0.5s ease-out 0.7s forwards;
}

.login-footer {
    animation: fadeInItem 0.5s ease-out 0.8s forwards;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Registration Page Styles */
.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

.registration-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: fadeInContent 0.8s ease-out forwards;
    opacity: 0;
}

.registration-form-container {
    width: 50%;
    padding: 2.5rem;
    text-align: center;
}

.registration-form-container h2 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    animation: fadeInItem 0.5s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.registration-form-container p {
    color: #666;
    margin-bottom: 1.5rem;
    animation: fadeInItem 0.5s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.registration-form-container form {
    text-align: left;
}

.registration-form-container .form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(15px);
}

.registration-form-container .form-group:nth-child(1) {
    animation: fadeInItem 0.5s ease-out 0.4s forwards;
}

.registration-form-container .form-group:nth-child(2) {
    animation: fadeInItem 0.5s ease-out 0.5s forwards;
}

.registration-form-container .form-group:nth-child(3) {
    animation: fadeInItem 0.5s ease-out 0.6s forwards;
}

.registration-form-container .form-group:nth-child(4) {
    animation: fadeInItem 0.5s ease-out 0.7s forwards;
}

.registration-form-container .form-group:nth-child(5) {
    animation: fadeInItem 0.5s ease-out 0.8s forwards;
}

.registration-form-container .form-group:nth-child(6) {
    animation: fadeInItem 0.5s ease-out 0.9s forwards;
}

.registration-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.registration-form-container .required {
    color: #e74c3c;
    margin-left: 2px;
}

.registration-form-container input,
.registration-form-container select,
.registration-form-container textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: border-color 0.3s ease;
}

.registration-form-container select {
    height: 44px;
    background-color: #fff;
}

.registration-form-container textarea {
    resize: vertical;
    min-height: 80px;
}

.registration-form-container input:focus,
.registration-form-container select:focus,
.registration-form-container textarea:focus {
    border-color: #003366;
    outline: none;
}

.file-input {
    padding: 0.6rem 0;
    border: none;
}

.register-button {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    background-color: #003366;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 1rem;
    animation: fadeInItem 0.5s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.register-button:hover {
    background-color: #ffcc00;
    color: #003366;
}

.login-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
    animation: fadeInItem 0.5s ease-out 1.1s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.login-link p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.login-link a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
    color: #ffcc00;
}

.info-section {
    position: relative;
    width: 50%;
    overflow: hidden;
}

.info-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay on the image */
.info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.3), rgba(0, 51, 102, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
}

.info-content {
    position: relative;
    z-index: 2;
}

.info-content h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.info-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.info-overlay .tagline {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffcc00;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .registration-container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .registration-form-container,
    .info-section {
        width: 100%;
    }
    
    .info-section {
        min-height: 300px;
        order: -1;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 2rem 0;
    }
    
    .registration-form-container {
        padding: 1.5rem;
    }
    
    .info-section {
        min-height: 250px;
    }
    
    .info-overlay {
        padding: 1.5rem;
    }
}

/* Password Field Styling */
.form-group {
    position: relative;
}

.password-field-container {
    position: relative;
    width: 100%;
}

.password-field-container input {
    padding-right: 40px; /* Make room for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.password-toggle:hover {
    color: #003366;
}

.password-toggle:focus {
    outline: none;
}

.login-form .password-toggle {
    top: 32px; /* Position at exact height after label */
}

.registration-form-container .password-toggle {
    top: 32px; /* Position at exact height after label */
}

/* Ensure the password fields have enough padding on the right to accommodate the icon */
input[type="password"] {
    padding-right: 40px !important;
}

.password-toggle i {
    font-size: 18px;
}