:root {
            --primary: #137547;
            --primary-dark: #0a3622;
            --primary-light: #e8f5e9;
            --accent: #FFD700;
            --accent-dark: #e6c200;
            --text: #2d3748;
            --text-light: #718096;
            --bg: #f8fafc;
            --card-bg: rgba(255, 255, 255, 0.98);
            --success: #38a169;
            --error: #e53e3e;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            
            background-size: cover;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding: 20px;
        }

        body::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(19, 117, 71, 0.9) 0%, rgba(10, 54, 34, 0.95) 100%);
            z-index: 0;
        }

        .particle-container {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 1;
        }

        .particle {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 15s linear infinite;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) scale(0);
                opacity: 0;
            }

            10% {
                opacity: 0.3;
            }

            90% {
                opacity: 0.3;
            }

            100% {
                transform: translateY(-20vh) scale(1);
                opacity: 0;
            }
        }

        .signup-container {
            width: 100%;
            max-width: 400px;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            position: relative;
            z-index: 2;
            backdrop-filter: blur(5px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .signup-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 25px;
            text-align: center;
            position: relative;
            clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
        }

        .logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 24px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
            transition: all 0.4s ease;
        }

        .logo:hover .logo-icon {
            transform: rotate(15deg) scale(1.05);
        }

        .logo-text {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
            font-size: 24px;
            letter-spacing: 1px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .logo-subtext {
            font-size: 13px;
            opacity: 0.9;
            margin-top: 4px;
            font-weight: 400;
        }

        .signup-body {
            padding: 30px;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text);
            font-size: 14px;
            padding-left: 5px;
        }

        .input-field {
            width: 100%;
            padding: 14px 16px 14px 46px;
            border: 2px solid var(--primary-light);
            border-radius: 12px;
            font-size: 15px;
            transition: all 0.3s ease;
            background: var(--bg);
            color: var(--text);
            font-weight: 500;
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(19, 117, 71, 0.15);
            background: white;
        }

        .input-icon {
            position: absolute;
            left: 16px;
            top: 42px;
            color: var(--text-light);
            font-size: 18px;
            transition: all 0.3s ease;
        }

        .input-field:focus+.input-icon {
            color: var(--primary);
            transform: scale(1.1);
        }

        .password-toggle {
            position: absolute;
            right: 16px;
            top: 42px;
            color: var(--text-light);
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .password-toggle:hover {
            color: var(--primary);
        }

        .btn-primary {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(19, 117, 71, 0.3);
            z-index: 1;
        }

        .btn-primary::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: 0.5s;
            z-index: -1;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(19, 117, 71, 0.4);
        }

        .btn-primary:hover::before {
            left: 100%;
        }

        .divider {
            display: flex;
            align-items: center;
            margin: 25px 0;
            color: var(--text-light);
            font-size: 13px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .divider::before,
        .divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: linear-gradient(to right, transparent, var(--primary-light), transparent);
        }

        .divider-text {
            padding: 0 12px;
        }

        .footer {
            text-align: center;
            margin-top: 25px;
            font-size: 12px;
            color: var(--text-light);
        }

        .footer a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .footer a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        /* Status messages */
        .status-message {
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: fadeIn 0.4s ease-out;
        }

        .status-success {
            background: rgba(56, 161, 105, 0.1);
            color: var(--success);
            border: 1px solid rgba(56, 161, 105, 0.3);
        }

        .status-error {
            background: rgba(229, 62, 62, 0.1);
            color: var(--error);
            border: 1px solid rgba(229, 62, 62, 0.3);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .signup-container {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
        }

        .input-group {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
        }

        .input-group:nth-child(1) {
            animation-delay: 0.1s;
        }

        .input-group:nth-child(2) {
            animation-delay: 0.2s;
        }

        .btn-primary {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
            animation-delay: 0.3s;
        }

        .divider {
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
            animation-delay: 0.4s;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .signup-container {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
        align-items: flex-start;
    }

    .signup-container {
        margin-top: 20px;
        max-width: 100%;
    }

    .signup-header {
        padding: 20px;
    }

    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 20px;
    }

    .signup-body {
        padding: 25px;
        min-height: auto;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    .signup-container {
        margin-top: 10px;
        max-width: 100%;
        border-radius: 16px;
    }

    .signup-header {
        padding: 15px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .logo-text {
        font-size: 18px;
    }

    .signup-body {
        padding: 20px;
        min-height: auto;
    }
}

        /* Password section transition */
        #password-section {
            display: none;
            animation: fadeInUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        }

        /* Loading spinner */
        .spinner {
            display: none;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
            margin-left: 10px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }


       .btn-login {
            width: 100%;
            padding: 15px;
            background: white;
            color: var(--primary);
            border: 2px solid var(--primary-light);
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

            /* Hover effect */
        .btn-login:hover {
            background: var(--primary-light);
            color: var(--primary-dark);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }


        #statusMessage {
  padding: 10px 15px;
  margin-top: 10px;
  border-radius: 5px;
  display: none;
}

#statusMessage.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#statusMessage.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
