@font-face {
    font-family: 'Norwester';
    src: url('norwester.otf') format('opentype');
}

:root {
    --primary-color: #002d18;
    --secondary-color: #002d18;
    --brand-color: #ffffff;
    --button-color: #002d18;
    --forgot-password: #ff5757;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.35px;
}

body {
    height: 100vh;
    margin: 0;
    background: url('../images/bg_one.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 45, 24, 0.7); /* Using your --primary-color with opacity */
    z-index: 0;
}

/* Window Controls */
.window-controls {
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    gap: 0;
    z-index: 1000;
    -webkit-app-region: no-drag;
}

.window-controls button {
    width: 45px;
    height: 32px;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.window-controls .minimize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.window-controls .maximize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.window-controls .close:hover {
    background-color: #e81123;
}

.background-overlay {
    display: none;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 900px;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
    animation: fadeIn 0.8s ease forwards;
}

/* Left Side Styles */
.left-side {
    background: linear-gradient(145deg, rgba(0, 56, 33, 0.9), rgba(0, 77, 54, 0.8));
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.left-side::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    opacity: 0;
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.8); }
}

.welcome-text {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 300px;
    max-height: 300px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.tagline {
    font-style: italic;
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tagline::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.5);
}

/* Right Side Styles */
.right-side {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
}

.agile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.agile-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transform-origin: center;
    opacity: 1;
    cursor: pointer;
}

.agile-logo.animate {
    animation: 
        bounceIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards,
        infiniteRotation 15s linear infinite 1.5s;
}

.agile-container::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(0, 77, 54, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1s ease;
}

.agile-container.animate::after {
    opacity: 1;
    transform: scale(1);
}

.auth-toggle {
    margin: 0.5rem 0;
    background: #a5cbb9;
    border-radius: 2rem;
    padding: 0.25rem;
    display: inline-flex;
    align-self: center;
}

.toggle-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: bold;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: #a5cbb9;
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title h1 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.login-title h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.login-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container .icon {
    position: absolute;
    left: 0.75rem;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.input-container input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid rgba(11, 70, 25, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.input-container input:focus {
    border-color: #0B4619;
    box-shadow: 0 0 0 2px rgba(11, 70, 25, 0.1);
    outline: none;
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: var(--forgot-password);
    text-decoration: none;
    font-size: 0.9rem;
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    background: #0B4619;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.7s ease;
}

.login-btn:hover {
    background: #0d5420;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.login-btn:hover::before {
    left: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
    }
    
    .right-side {
        border-radius: 20px;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    animation: popIn 0.3s ease-out forwards;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.popup-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.popup-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.popup-icon.success {
    fill: #4CAF50;
}

.popup-icon.error {
    fill: #f44336;
}

.popup h2 {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1.5rem;
}

.popup p {
    color: #666;
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Add animation to form on error */
.login-form.error {
    animation: shake 0.5s ease-in-out;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 70, 25, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success .popup-icon {
    background: #e6f4ea;
    color: #0B4619;
}

.error .popup-icon {
    background: #fde7e9;
    color: #ff5757;
}

.popup-message {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.popup-btn {
    padding: 0.75rem 2rem;
    background: var(--button-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.popup-btn:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Forgot Password Popup Styles */
.forgot-password-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.forgot-password-popup .popup-content {
    background: #074d36;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    color: white;
    position: relative;
}

.forgot-password-popup h2 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

.forgot-password-popup p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.forgot-password-popup .form-group {
    margin-bottom: 20px;
}

.forgot-password-popup input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.forgot-password-popup input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.forgot-password-popup label {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.forgot-password-popup .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.forgot-password-popup .popup-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

.forgot-password-popup .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.forgot-password-popup h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.forgot-password-popup .form-group {
    margin-bottom: 20px;
}

.forgot-password-popup .input-container {
    margin-top: 5px;
}

.forgot-password-popup .send-btn {
    background: rgba(0, 45, 24, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer; 
}

.send-btn:hover {
    background: rgba(0, 45, 24, 0.9);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.error-popup .popup-content {
    background-color: #ffffff;
    color: rgb(255, 0, 0);
}

.error-popup h2 {
    color: rgba(255, 0, 0, 0.771);
    margin-bottom: 10px;
}

.error-popup p {
    color: rgb(0, 0, 0);
}

.status-message {
    margin-top: 1.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.status-message.processing {
    background: #e8f4fd;
    color: #0277bd;
}

.status-message.success {
    background: #e6f4ea;
    color: #0B4619;
}

.status-message.error {
    background: #fde7e9;
    color: #ff5757;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.shake {
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* New animations and enhanced styling */

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #0B4619;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    padding: 5px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #ff9100;
}

.password-toggle:focus {
    outline: none;
}

/* Logo Animation */
.animate-logo {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-logo.animate {
    opacity: 1;
    transform: scale(1);
}

/* Text Animation */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-text.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Add some additional animation keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Apply floating animation to logo */
.animate-logo.animate {
    animation: float 6s ease-in-out infinite;
}

/* Tagline text animation */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #ffffff; }
}

@keyframes finalUnderline {
    from { width: 0; border-color: #ffffff; }
    to { width: 100%; border-color: #ffffff; }
}

.tagline.animate {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typewriter 3.5s steps(40, end) 1s forwards;
    border-right: 3px solid #ffffff;
}

.tagline.animate::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 2px;
    background-color: #ffffff;
    width: 0;
    animation: finalUnderline 0.8s ease-out 4.5s forwards;
}

/* AGILE logo animation - bounce and glow with rotation */
@keyframes bounceIn {
    0% { 
        transform: translateY(-20px);
        opacity: 0;
        filter: brightness(1);
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
        filter: brightness(1.5) drop-shadow(0 0 8px rgba(0, 77, 54, 0.7));
    }
    70% {
        transform: translateY(-5px);
    }
    85% {
        transform: translateY(2px);
    }
    100% { 
        transform: translateY(0);
        filter: brightness(1);
    }
}

@keyframes infiniteRotation {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

.agile-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transform-origin: center;
    opacity: 1;
    cursor: pointer;
}

/* Bounce effect followed by infinite rotation */
.agile-logo.animate {
    animation: 
        bounceIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards,
        infiniteRotation 15s linear infinite 1.5s;
}

.agile-container::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(0, 77, 54, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1s ease;
}

.agile-container.animate::after {
    opacity: 1;
    transform: scale(1);
}

/* Info Icon and Popup Styles */
.info-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 45, 24, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: rgba(0, 45, 24, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-icon i {
    color: white;
    font-size: 20px;
}

.info-popup .popup-content {
    max-width: 800px;
    width: 90%;
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
}

.info-popup .popup-icon {
    fill: #2196F3;
}

.info-tabs {
    margin: 20px 0;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn.active {
    border-bottom-color: #0B4619;
    color: #0B4619;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

.policy-content {
    text-align: left;
    color: #333;
    max-height: 50vh;
    overflow-y: auto;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eaeaea;
    line-height: 1.5;
}

.policy-content h3 {
    color: #0B4619;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.policy-content h4 {
    margin: 20px 0 10px;
    color: #0B4619;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.policy-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

.policy-content ul {
    margin: 12px 0;
    padding-left: 25px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.policy-content strong {
    font-weight: 600;
    color: #000;
}

.policy-content a {
    color: #0B4619;
    text-decoration: underline;
}

/* Custom scrollbar for policy content */
.policy-content::-webkit-scrollbar {
    width: 8px;
}

.policy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.policy-content::-webkit-scrollbar-thumb {
    background: #0B4619;
    border-radius: 4px;
    opacity: 0.7;
}

.policy-content::-webkit-scrollbar-thumb:hover {
    background: #0d5420;
}

.info-ok-btn {
    background: #0B4619;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.info-ok-btn:hover {
    background: #0d5420;
    transform: translateY(-2px);
}









